Thu, 31 Mar 2011 21:24:32 +0200
Arthur de Jong <[email protected]> wrote:

> retitle 620235 problems with short usernames
> tags 620235 + pending
> thanks
> 
> On Thu, 2011-03-31 at 14:50 +0400, Alexander Gerasiov wrote:
> > Today nslcd upgraded to 0.8.2 and I catched the following bug.
> > 
> > It fails to resolve username 'gq' in ldap. Other users works fine.
> > Looks like it doesn't look in ldap at all:
> > 
> > nslcd: [8b4567] DEBUG: connection from pid=8154 uid=0 gid=0
> > nslcd: [8b4567] <passwd="gq"> "gq": invalid user name
> > 
> > Have no time to investigate it deeper, so had to rollback to
> > previous version.
> 
> The cause of this problem is the new regular expression based checks
> for valid usernames. It currently rejects usernames of less than three
> characters. This will be fixed in the next release (the minimum will
> be two then).
Well, first I suggest you to make error message more informative.
2nd: why do you think one letter username should be disallowed? I cant
remember such restriction in POSIX.

> 
> A workaround is to put this in /etc/nslcd.conf:
> 
> validnames /^[a-z0-9._@$][a-z0-9._@$ \\~-]*[a-z0-9._@$~-]$/i
I'll wait for the next version =)


-- 
Best regards,
 Alexander GQ Gerasiov

 Contacts:
 e-mail:    [email protected]             Jabber:  [email protected]
 Homepage:  http://gq.net.ru         ICQ:     7272757
 PGP fingerprint: 04B5 9D90 DF7C C2AB CD49  BAEA CA87 E9E8 2AAC 33F1



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to