git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b32d9a
)
s4-dsdb: Give a much better error message when parentGUID generation fails
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Jul 2012 05:36:12 +0000
(15:36 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Jul 2012 06:10:18 +0000
(08:10 +0200)
source4/dsdb/samdb/ldb_modules/operational.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/ldb_modules/operational.c
b/source4/dsdb/samdb/ldb_modules/operational.c
index 79a1d6f2def1b67be5bbfed8ee89bcb3e6b8982a..4ce8b8fddaf18df13709c9971e0bbc3ce595f556 100644
(file)
--- a/
source4/dsdb/samdb/ldb_modules/operational.c
+++ b/
source4/dsdb/samdb/ldb_modules/operational.c
@@
-309,9
+309,9
@@
static int construct_parent_guid(struct ldb_module *module,
/* not NC, so the object should have a parent*/
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- DEBUG(4,(__location__ ": Parent dn for %s does not exist \n",
- ldb_dn_get_linearized(msg->dn)));
-
return ldb_operr(ldb_module_get_ctx(module
));
+ return ldb_error(ldb_module_get_ctx(module), LDB_ERR_OPERATIONS_ERROR,
+ talloc_asprintf(msg, "Parent dn for %s does not exist",
+
ldb_dn_get_linearized(msg->dn)
));
} else if (ret != LDB_SUCCESS) {
return ret;
}