PDA

Bekijk Volledige Versie : Please use all lower case characters in the username



Robert Esseveld
04/11/11, 13:33
Ik ben op een nieuwe webserver wat accounts aan het overzetten.
Als ik back-ups restore krijg ik de volgende melding:


Error while creating User B****. <b>Please use all lower case characters in the username</b>

Is ergens in te stellen dat DirectAdmin deze check skipt? Ik kan 'm niet vinden.

Mikey
04/11/11, 13:37
Lees even onderstaand:


The skins already check for this, so it only applies to API created Users.
Usernames were allowed to have upper case characters. This caused issues with the mail system, as it automatically converts usernames to lower case.
The converted values didn't match the true values, thus confusing login errors appeared that the account didn't exist.

The fix is simple, in that it simply checks for upper case characters and blocks it.
It does not re-define what a valid User is though, as it's possible existing Users exist with upper case characters, so we're not going to block those.
The block only happens as User creation time, so only Users creation attempts will be affected. Existing Users will be fine.
Note, if you're transferring a User to a new box, you'll need to rename the Username.tar.gz to username.tar.gz (or user.admin.Username.tar.gz to user.admin.username.tar.gz), as Users are created during a restore, which applies with the block.

Mikey
04/11/11, 13:40
Met onderstaande zou je alles in 1 x kunnen renamen lowercase. Let wel test van te voren of maak een backup van je files. Shell script in folder zetten waar files staan.


for x in `find * -type f`;
do
y=$(echo $x | tr '[A-Z]' '[a-z]');
if [ "$x" != "$y" ]; then
mv $x $y;
fi
done

Robert Esseveld
04/11/11, 14:04
Thx voor je reply Mikey.
Dat dit een oplossing is om alles te restoren weet ik. Echter klappen dan alle sites met een database erachter in elkaar.
En aangezien het hier niet om 10 accounts gaat, is dat dus een issue. Daarom zou het mooi zijn als deze check geskipt kan worden.

Ik ga even een e-mail richting de support van DirectAdmin wagen:)

Robert Esseveld
07/11/11, 10:47
Helaas, het is niet mogelijk.
Antwoord van DirectAdmin support:

There is no ability to skip this check.
Using upper case characters has been found to cause significant issues with the mail system, which automatically convers upper case to lower case, thus strings don't always match and mail dissapears.

t.bloo
07/11/11, 11:15
Hoofdletters op de command line is ook wel een beetje DOS-tijdperk he...

Robert Esseveld
07/11/11, 14:21
Tja, destijds heeft het systeem dat soort usernames gegenereerd bij het opleveren. Daar is nu weinig meer aan te veranderen..