[Date Prev][Date Next] [Chronological] [Thread] [Top]

Silly details like CN= v cn=



I've been working on making Samba4 pass it's testsuite with OpenLDAP as
a backend. 

One of my tests does what no LDAP client should do - it applies a case
sensitive comparison of the returned DN, compared with what we expect
and get from AD.

For example, we search for cn=ldaptestmachine and then ensure we get:

 CN=ldaptestmachine,CN=Users,DC=samba,DC=example,DC=com

OpenLDAP returns 

 cn=ldaptestmachine,cn=users,dc=samba,dc=example,dc=com

which I'm sure is perfectly valid, but if I can write a bodgy script
with case sensitive comparisons, so can an admin or sloppy app.  Working
in the windows space makes me like to eliminate differences where I
can. 

Can the case of the attribute names (CN and DC) in that DN be made to be
UPPER case easily?  (Alternately I'll write a filter module on the
Samba4 side to do that). 

Thanks,

Andrew Bartlett
-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.

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