Username problem

DJVG

Verified User
Joined
Aug 14, 2008
Messages
25
Hi Guys,

All of my customers get a username like this: S1581, S1592 etc..

Today I found that users with that kind of usernames cannot login to webmail or imap/pop3:
Apr 9 10:31:03 neophron dovecot: auth: shadow(s1581,127.0.0.1): unknown user
Apr 9 10:31:03 neophron dovecot: auth: passwd-file(s1581,127.0.0.1): no passwd file: /etc/virtual//passwd

All these users are created trough the API, and that is interesting, because when I try to create a user with that kind of username trough the directadmin web interface i get a error: Invalid username.

So i take a look at the username requirements:
The User's username. 4-8 characters, alphanumeric

And this is the definition of alphanumeric:
The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.

So, i don't understand why:
1. There is no mail user when I create such user trough the API.
2. Why is a username in that format incorrect for creating a user trough the web interface?

Kind regards,
DJVG
 
Are they able to authorize in POP3/IMAP? If yes, then there is nothing to worry about, since virtual email accounts are not included in /etc/shadow.
 
1.Make sure they use valid passwords and logins (a login is equal email account's name).

2. Make sure password file exists in proper directory: /etc/virtual/domain.name/passwd
 
1.Make sure they use valid passwords and logins (a login is equal email account's name).

2. Make sure password file exists in proper directory: /etc/virtual/domain.name/passwd

1. I create valid password and logins, but this doesn't work.
2. password file exists, but empty.

Can someone from DirectAdmin technical support help me with this one? Because I think this is some kind of bug, or in the API accepting wrong usernames or something.

Kind regards,
Daan van Gorkum
 
Last edited:
Try creating a user with a lower-case s instead of an uppercase S and see if it works.

My guess is that the uppercase letter is invalid but the API has left out the error checking.

Jeff
 
Thanks, John.

Note to everyone, while you might argue that it ought to be okay to use uppercase letters in the local part (username part) of email addresses, it's not because email delivery systems that obey RFCs automatically convert local parts of email addresses to lower case, as they must to avoid ambiguity.

Jeff
 
Thanks, John.

Note to everyone, while you might argue that it ought to be okay to use uppercase letters in the local part (username part) of email addresses, it's not because email delivery systems that obey RFCs automatically convert local parts of email addresses to lower case, as they must to avoid ambiguity.

Jeff
I've made a change to the code, listed here:
http://www.directadmin.com/features.php?id=1203

John

Thank you very much both of you!!!!!

I will update soon when the latest release is ready for use!

Again, thank you!

DJVG
 
Back
Top