r8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jul 2005 01:17:09 +0000 (01:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:00 +0000 (13:30 -0500)
commita7f9d9c5b8e77e0530ace68bd2ed4a7c374bf0fa
tree96bb2ff20365611d7587d79aaaa41791c135c59e
parent77e52a4e2c4587785930491695486b2d8b26b509
r8740: Extend the rdn_name module to handle adding the rdn as an attribute.  ie:

dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett
(This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)
source4/dsdb/samdb/ldb_modules/samldb.c
source4/lib/ldb/modules/rdn_name.c
source4/setup/provision.ldif
testprogs/ejs/ldap.js [new file with mode: 0755]
testprogs/ejs/ldb.js