summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-11-02 00:32:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:45 -0500
commit9ec6f0a3a17093f5c0fdf259ce36830eeccd215a (patch)
treece9aefc77d467543321b52b28e86b23d307d9449
parentb7774527faf095f612eb1de48efacec6bd710a87 (diff)
downloadsamba-9ec6f0a3a17093f5c0fdf259ce36830eeccd215a.tar.gz
samba-9ec6f0a3a17093f5c0fdf259ce36830eeccd215a.tar.bz2
samba-9ec6f0a3a17093f5c0fdf259ce36830eeccd215a.zip
r19532: oops forgot this
(This used to be commit 9af225e319838a33141daa450473c157ecd65cd3)
-rw-r--r--source4/lib/ldb/ldb_ldap/ldb_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_ldap/ldb_ldap.c b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
index a17e80cde0..cdc1a500f8 100644
--- a/source4/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source4/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -463,8 +463,8 @@ static int lldb_rename(struct ldb_module *module, struct ldb_request *req)
}
newrdn = talloc_asprintf(lldb_ac, "%s=%s",
- req->op.rename.newdn->components[0].name,
- ldb_dn_escape_value(lldb, req->op.rename.newdn->components[0].value));
+ ldb_dn_get_rdn_name(req->op.rename.newdn),
+ ldb_dn_escape_value(lldb, *(ldb_dn_get_rdn_val(req->op.rename.newdn))));
if (!newrdn) {
return LDB_ERR_OPERATIONS_ERROR;
}