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)
commit0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3
tree0529215723806abcb8f0200145fe6cbfe4bf31fd
parent325f6d24dfc285587bde9fea6eeaf136c2731eff
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
source/dsdb/samdb/ldb_modules/samldb.c
source/lib/ldb/modules/rdn_name.c
source/setup/provision.ldif
testprogs/ejs/ldap.js [new file with mode: 0755]
testprogs/ejs/ldb.js