svn commit: samba r17058 - in branches/SOC/mkhl/ldb-map/modules: .

mkhl at samba.org mkhl at samba.org
Sat Jul 15 09:32:17 GMT 2006


Author: mkhl
Date: 2006-07-15 09:32:17 +0000 (Sat, 15 Jul 2006)
New Revision: 17058

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17058

Log:
When fixing the 'isMapped' attribute after renaming the remote record,
don't reuse the DN from the last down request but calculate it freshly.

The old 'newdn' was modified to point into the remote partition, but
the 'isMapped' attribute is expected to keep pointing into the local
partition.

Martin

Modified:
   branches/SOC/mkhl/ldb-map/modules/ldb_map.c


Changeset:
Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c
===================================================================
--- branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-15 09:27:07 UTC (rev 17057)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c	2006-07-15 09:32:17 UTC (rev 17058)
@@ -2534,7 +2534,7 @@
 	/* update 'IS_MAPPED' with the new remote DN */
 	msg->dn = discard_const_p(struct ldb_dn,
 				  ac->orig_req->op.rename.olddn);
-	dn = ldb_dn_linearize(msg, ac->remote_req->op.rename.newdn);
+	dn = map_local_dn(ac->module, msg, ac->orig_req->op.rename.newdn);
 	if (dn == NULL)
 		goto failed;
 	if (ldb_msg_add_empty(msg, IS_MAPPED, LDB_FLAG_MOD_REPLACE) != 0)



More information about the samba-cvs mailing list