« Return to Thread: Problem with whitespace striping

Problem with whitespace striping

by Ashley Penney :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have a problem with getting groups working via nss_ldap, and I'll try to explain below.  Due to a pre-existing LDAP setup I have to work within some confines, we have ou=People and ou=Roles, and under Roles we have cn=SFTP User,ou=Roles.

In cn=SFTP User I added objectclass: posixGroup, and under my uid=apenney,ou=People I have isMemberOf: cn=SFTP User,ou=Roles,dc=law,dc=harvard,dc=edu.

I hope that made sense!  I then set up ldap.conf to have backlinks, rfcXXXbis (I can never remember the number), mapped nss_base_group to ou=Roles and remapped MemberOf to isMemberOf.

When I log in I can see it doing all sorts of lookups, but I notice it looks up cn=sftpuser, all lower case and without spaces.  If I add quotes in my isMemberOf under uid=apenney, it looks up cn='sftpuser', but still deletes the space. I think this is causing me endless problems.  Is there a way to make it not stripe whitespace?

 « Return to Thread: Problem with whitespace striping