[FR] Let us use long password

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
A password shorter than 12 characters is useless, so it's best to use something in the 20-32 characters range.

The problems is that DA complains that the password is too long for MySQL which is wrong since 32 characters password work just fine.

Could we get rid of that limit if I'm not missing something?
 
useless? that's an opinion... name one person that is going to remember 32 numbers/letters?

that's just overkill imo.

if you are that concerned I would suggest using keys instead of passwords.
 
useless? that's an opinion... name one person that is going to remember 32 numbers/letters?
We even generate random passwords for sign-ups, but they always change them straight afterwards, presumably because of they can't remember. Saying that, I wouldn't be able to remember a 32 char password!!!
 
1LoveDirect@dminForums has 22 characters and isn't that hard to remember...It's all about education imho.
Keys would be nice to have for DA, but that wouldn't work for users.
 
@Peter Laws,

KeePass will help you to manage you much longer passwords.

@interfasys

Here is my result:

Code:
Database Created

Details

Adding limits per user to DB MySQL: 
Privileges successfuly added for MySQL user u3001419_12 and database u3001419_12.

Your database has been setup. Use the following values:
Database:	u3001419_12
Host:		localhost
Username:	u3001419_12
Password:	0123456789012345678901234567890123456789

Do I miss anything? Is it a JavaScript alert on your skin?
 
Last edited:
@zEitEr - Yes, It's DA that complains about the password being too long, MySQL is fine.
It's on the "Change Password" page.
 
Hello,

The main reason for that limit is because of the limited space available in mysql to store it, back when DA was written (4.x):
Code:
mysql> describe mysql.user;
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Field                 | Type                              | Null | Key | Default | Extra |
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Host                  | varchar(60) binary                |      | PRI |         |       |
| User                  | varchar(16) binary                |      | PRI |         |       |
| password              | varchar(16)                       |      |     |         |       |
...
That has since changed with MySQL 5.x
Code:
mysql> describe mysql.user;
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Field                 | Type                              | Null | Key | Default | Extra |
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Host                  | char(60)                          | NO   | PRI |         |       |
| User                  | char(16)                          | NO   | PRI |         |       |
| Password              | char(41)                          | NO   |     |         |       |
...
In any case, I've upped it to 64 (same as limits for other areas). Reason being, I just noticed that password that are extremely long, it didn't matter.. the crypt kept on changing the result if you add/remove characters. This means that "in theory", there doesn't need to be a limit. The crypt created will still be more or less unique to that password, similar to how the md5sum hash works. I would say the probable uniqueness would be somewhere around 41 characters... as it would be impossible to have as many unique combinations in 41 characters if passwords are 100 characters long.. there would need to be duplicates eventually. But if you change the 99th character the entire 41 character crypt changes, so unless you type in all 100 characters correctly, you won't get the correct 41 character crypt. (there could be debate as to the chances of 2 crypts matching with different passwords, but the odds would be low, similar to md5sums)

Anyway, thanks for the report, the "Change passwords" page will now allow up to 64, like the other areas.

Also note, that the create database and create database user pages use the system password limit, which is already set to 64. This means that Passwords set by Users never had the 16 character limit. Any length issues are given to mysql, but it seems (as mentioned above) that they've already taken into consideration the issue of long passwords in small spaces.


On a side note, as for your link to password breaking, I would agree that the computing power is there to try all combinations in a shorter time than before, however you must have the crypt on the system that is doing the cracking in order for that to work (which is why /etc/shadow is not world readable, so they don't leave the box). If you're pounding away to a remote box trying all combinations through that services connection, that box won't be able to keep up with the pace of the cracking box, and the admin will likely notice eventually, on top of the fact that many services noticing themselves these days. All that aside, there still isn't much debate: A longer password will be more secure. ;)

John
 
Great news, thanks John. And yes, it's true, I had forgotten that part about having access to the machine. I was just looking for an article to illustrate my point and I remembered about that one, but didn't check the content.
 
Hi John,

ive already made a post for this but i wanna try to ask you here aswell.

When you create/modify user/password you can use a random auto-generate password.

I would like as feature a conf line in administration settings where you can set how longh the password generated must be.

Example. Define auto-generate password lenght: 10

Thanks
 
@SeLLeRoNe - You need to edit the php script and make sure you enable special characters.

Everybody, read this very entertaining article about how to not manage passwords at your company. This security company is laughable and it's scary that they do sell solutions to a government...
 
interfasys what php script? I was talkin about the password generator integrated into directadmin not about any hosted website.

And btw, into directadmin special char into password are already enabled.

Regards
 
There are 2 scripts that DA uses (and I think it's a pain to have to use 2).
The one you want is in yourskin/javascript.html
You'll have to customize it to make it behave like the difficult_password.php script DA uses to enforce password length.
 
Back
Top