svn commit: samba r17073 - in branches/SOC/mkhl/ldb-map/modules: .
mkhl at samba.org
mkhl at samba.org
Sat Jul 15 18:38:58 GMT 2006
Author: mkhl
Date: 2006-07-15 18:38:57 +0000 (Sat, 15 Jul 2006)
New Revision: 17073
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17073
Log:
Convert remote new DN to string before stuffing it into the fixup message.
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 18:35:26 UTC (rev 17072)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 18:38:57 UTC (rev 17073)
@@ -2539,6 +2539,7 @@
{
struct map_async_context *ac;
struct ldb_message *msg;
+ const struct ldb_dn *newdn;
const char *dn;
ac = talloc_get_type(handle->private_data, struct map_async_context);
@@ -2559,7 +2560,8 @@
/* update 'IS_MAPPED' with the new remote DN */
msg->dn = discard_const_p(struct ldb_dn,
ac->orig_req->op.rename.olddn);
- dn = map_local_dn(ac->module, msg, ac->orig_req->op.rename.newdn);
+ newdn = map_local_dn(ac->module, msg, ac->orig_req->op.rename.newdn);
+ dn = ldb_dn_linearize(msg, 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