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).

A workaround is to put this in /etc/nslcd.conf:

validnames /^[a-z0-9._@$][a-z0-9._@$ \\~-]*[a-z0-9._@$~-]$/i

Thanks for reporting this.

-- 
-- arthur - adej...@debian.org - http://people.debian.org/~adejong --

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to