ldb: support for modrdn LDIF

Stefan (metze) Metzmacher metze at samba.org
Sat Apr 9 03:43:05 MDT 2011


I've added support for modrdn in LDIF, this looks like this:

dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,o=University of
changetype: moddn
newrdn: cn=Hampster Ursula
deleteoldrdn: 1
newsuperior: ou=Alumni Association,ou=People,o=University of Michigan,c=TEST

dn: cn=Hampster Ursula,ou=Alumni Association,ou=People,o=University of
changetype: modrdn
newrdn: cn=Ursula Hampster
deleteoldrdn: 1

The code can be found here:

I've added a ldb_ldif_parse_modrdn() helper function which parses the modrdn
related stuff out of a ldb_message. I think this is better than changing
struct ldb_ldif, as that would be an ABI breakage and we would need to
change the version
to 2.0.0.

As ldb_ldif_parse_modrdn() is a new public function I changed the
version to 1.1.0 instead of 1.0.3.

Is it ok to push this?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110409/9fa116c3/attachment.pgp>

More information about the samba-technical mailing list