Handling spaces in DNs

Stefan (metze) Metzmacher metze at samba.org
Wed Oct 24 07:18:32 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Bartlett schrieb:
> The work done a while back to limit how often we parsed and unparse a DN
> has had an unusual side-effect, that I would like some assistance in
> solving.
> 
> If we add a DN of the form:
> 
> cn=admins ,cn=users,dc=samba,dc=example,dc=org
> 
> Then the DN will remain in the database in that form, including the
> extra space around "admins".  For maximum retention of information,
> while retaining a normalised form, it should be added like:
> 
> CN=admins,CN=users,DC=samba,DC=example,DC=org

my repl_meta_data module does normalising of the CN=admins attribute.
I think a module in the ldb_add/modify/rename should normalise the all
dns before storing them, and on search we can be lazy...

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHHvHIm70gjA5TCD8RAmuPAKCnIEgkRPHfLWHds6e4zTPR8ZeeFwCgyvd2
imp3G7UMkZjloLcAVxpjIY0=
=aw3O
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list