summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/ldb_ildap/ldb_ildap.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-15 17:34:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:50 -0500
commit866a3b6e40952193d5bcd812ec7079cf7434e600 (patch)
treefe66f644d76f735fb642ec80df4c368d573b4745 /source3/lib/ldb/ldb_ildap/ldb_ildap.c
parent06715191dd4347104efb3f8929290edc1f969752 (diff)
downloadsamba-866a3b6e40952193d5bcd812ec7079cf7434e600.tar.gz
samba-866a3b6e40952193d5bcd812ec7079cf7434e600.tar.bz2
samba-866a3b6e40952193d5bcd812ec7079cf7434e600.zip
r19725: sync samba3's ldb with samba4
metze (This used to be commit 207643e9c9c75546f38a09f12ea0b574b08086c5)
Diffstat (limited to 'source3/lib/ldb/ldb_ildap/ldb_ildap.c')
-rw-r--r--source3/lib/ldb/ldb_ildap/ldb_ildap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/ldb/ldb_ildap/ldb_ildap.c b/source3/lib/ldb/ldb_ildap/ldb_ildap.c
index 3843d2b825..51ae031cf9 100644
--- a/source3/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source3/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -49,6 +49,7 @@
#include "libcli/ldap/ldap.h"
#include "libcli/ldap/ldap_client.h"
#include "auth/auth.h"
+#include "auth/credentials/credentials.h"
struct ildb_private {
struct ldap_connection *ldap;
@@ -639,8 +640,8 @@ static int ildb_rename(struct ldb_module *module, struct ldb_request *req)
msg->r.ModifyDNRequest.newrdn =
talloc_asprintf(msg, "%s=%s",
- req->op.rename.newdn->components[0].name,
- ldb_dn_escape_value(msg, req->op.rename.newdn->components[0].value));
+ ldb_dn_get_rdn_name(req->op.rename.newdn),
+ ldb_dn_escape_value(msg, *ldb_dn_get_rdn_val(req->op.rename.newdn)));
if (msg->r.ModifyDNRequest.newrdn == NULL) {
talloc_free(msg);
return LDB_ERR_OPERATIONS_ERROR;