r25750: Update the objectclass module to improve consistency in Samba4.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Oct 2007 20:25:26 +0000 (21:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:43:43 +0000 (05:43 +0100)
commit16d039504763139f1221c3ff4643d1a5cb2bdc87
tree1330820925ce7f173ebac4675c37801692ae6809
parentbb96624d68b3b947b1555bce97e479b72cb545d4
r25750: Update 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).

Andrew Bartlett
(This used to be commit c0a0c69ac5a81cfcb7c7d5ba38db59f8686c30ab)
source4/dsdb/samdb/ldb_modules/objectclass.c
source4/scripting/libjs/provision.js
testprogs/ejs/ldap.js