[PATCH] Improve Samba4's LDB consistancy
abartlet at samba.org
Mon Oct 29 10:56:34 GMT 2007
On Mon, 2007-10-29 at 10:22 +0100, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Stefan (metze) Metzmacher schrieb:
> > Hi Andrew,
> >> I've modified the objectclass module to improve consistency in Samba4.
> >> The aim here is to ensure that if we have
> >> CN=Users,DC=samba,DC=example,DC=com
> >> that we cannot have a DN of the form
> >> cn=admin ,cn=useRS,DC=samba,DC=example,DC=com
> >> This module pulls apart the DN, fixes up the relative DN part, and
> >> searches for the parent to copy the base from.
> >> I've used the objectclass module, as I intend to also validate the
> >> placement of child objects, by reading the allowedChildClasses virtual
> >> attribute.
> >> In the future, I'll also force the attribute names to be consistant
> >> (using the case from the schema).
> Please also take a look at
> dsdb/samdb/ldb_modules/repl_meta_data.c line 370...
The difference with my patch is that I'm trying to use the parent DN as
the base, so that the rest of the DN (case of the container etc) is
consistent. So I can't just copy the DN and fix the case of the RDN
Is there a reason to go via the schema when upper-casing the attribute
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20071029/e63c7f9b/attachment.bin
More information about the samba-technical