diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-19 17:46:57 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-19 17:53:15 +0200 |
commit | ee2bb4474f38ce3c8d7a641059ca85cde1a12e9c (patch) | |
tree | 5862ef82020752cbce8ef075af8d7747d922ee59 /source4 | |
parent | 04890bb750ba900e8ee476690e8f882676217c72 (diff) | |
download | samba-ee2bb4474f38ce3c8d7a641059ca85cde1a12e9c.tar.gz samba-ee2bb4474f38ce3c8d7a641059ca85cde1a12e9c.tar.bz2 samba-ee2bb4474f38ce3c8d7a641059ca85cde1a12e9c.zip |
s4:objectclass LDB module - add a better message when the parent DN is invalid
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 0c0590251c..2b4c3989de 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -1054,8 +1054,9 @@ static int objectclass_rename(struct ldb_module *module, struct ldb_request *req parent_dn = ldb_dn_get_parent(ac, req->op.rename.newdn); if (parent_dn == NULL) { - ldb_oom(ldb); - return LDB_ERR_OPERATIONS_ERROR; + ldb_asprintf_errstring(ldb, "objectclass: Cannot rename %s, the parent DN does not exist!", + ldb_dn_get_linearized(req->op.rename.olddn)); + return LDB_ERR_NO_SUCH_OBJECT; } /* this looks up the parent object for fetching some important |