summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-19 17:47:22 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-19 17:53:16 +0200
commita4381239ba364ad025308e9b8f310942dde36db8 (patch)
tree11cbeb06bb420de7b7ee8b99da892d52e0489549 /source4/dsdb/samdb/ldb_modules
parentee2bb4474f38ce3c8d7a641059ca85cde1a12e9c (diff)
downloadsamba-a4381239ba364ad025308e9b8f310942dde36db8.tar.gz
samba-a4381239ba364ad025308e9b8f310942dde36db8.tar.bz2
samba-a4381239ba364ad025308e9b8f310942dde36db8.zip
s4:objectclass LDB module - use the old DN when displaying error messages
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index 2b4c3989de..3ec6db54e4 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -1100,7 +1100,7 @@ static int objectclass_do_rename(struct oc_context *ac)
* we don't get a LDB_ERR_NO_SUCH_OBJECT error. */
if (ac->search_res == NULL) {
ldb_asprintf_errstring(ldb, "objectclass: Cannot rename %s, parent does not exist!",
- ldb_dn_get_linearized(ac->req->op.rename.newdn));
+ ldb_dn_get_linearized(ac->req->op.rename.olddn));
return LDB_ERR_OTHER;
}
@@ -1140,7 +1140,7 @@ static int objectclass_do_rename2(struct oc_context *ac)
* we don't get a LDB_ERR_NO_SUCH_OBJECT error. */
if (ac->search_res == NULL) {
ldb_asprintf_errstring(ldb, "objectclass: Cannot rename %s, entry does not exist!",
- ldb_dn_get_linearized(ac->req->op.rename.newdn));
+ ldb_dn_get_linearized(ac->req->op.rename.olddn));
return LDB_ERR_NO_SUCH_OBJECT;
}