severity 488635 wishlist
retitle 488635 please support group names with spaces
tag 488635 + wontfix
thanks

On Mon, 2008-06-30 at 10:56 +0200, Andreas Schultz wrote:
> samba with LDAP based accounts uses Groups and Usernames that can
> contain spaces. nslcd refuses to map those names and logs a error
> message:
[...]
> The "old" libnss-ldap does not have this problem.

This is true and by design. I need a test for validity of user and group
names (mostly to distinguish DN values from name values in certain
cases). I took the POSIX specification as a basis for this:

http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_189
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_276

I don't think that having spaces in POSIX group names is a good idea
because it is bound to break stuff.

If you can come up with good arguments as to why this should be
supported I may reconsider though.

Anyway, extending the test isn't difficult, if you want to have a
patched version the code is in nslcd/common.c in the isvalidname()
function.

-- 
-- arthur - [EMAIL PROTECTED] - http://people.debian.org/~adejong --

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

Reply via email to