Hello, Arthur. On Sun, 03 Apr 2011 21:03:08 +0200 Arthur de Jong <[email protected]> wrote:
> On Fri, 2011-04-01 at 11:12 +0400, Alexander GQ Gerasiov wrote: > > > 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. > > Do you have a suggestion? Currently it is: > nslcd: [8b4567] <passwd="gq"> "gq": invalid user name > which means that it considers gq an invalid user name. May be refer to documentation or config option wich specify this. Well simple "username is not allowed by regexp user_regexp_config_variable" is much more informative. I just need keyword to look for in manual. > > > 2nd: why do you think one letter username should be disallowed? I > > cant remember such restriction in POSIX. > > I don't think there is a minimum length in POSIX either. Supporting > user names with one character however makes the regular expression > overly complicated. I don't know internals (why do you need this regexp etc.), but this sounds not very good: you made some restrictions just because code is too complex without them. This is normal situation for regular package, I think, but nslcd is a mainstream replacement for widely used pam-ldap/nss-ldap. Again: it's all up to you but may be it would be better if you leave this as todo or wishlist task. Anyway, thanks for your work. -- 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]

