summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-21 21:05:50 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:52 +1100
commitcb00e443a3c63889f39132e5e954eb0b95804e74 (patch)
treedf644c3672fde6082ae334ee576a92c51da4c8b8 /source4
parent9f02898080f5a19930d9adfcce3cf4139e3952e9 (diff)
downloadsamba-cb00e443a3c63889f39132e5e954eb0b95804e74.tar.gz
samba-cb00e443a3c63889f39132e5e954eb0b95804e74.tar.bz2
samba-cb00e443a3c63889f39132e5e954eb0b95804e74.zip
s4-drs: give a reason when an AddEntry commit fails
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/drsuapi/addentry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/addentry.c b/source4/rpc_server/drsuapi/addentry.c
index 89b664d691..ac94daa6a6 100644
--- a/source4/rpc_server/drsuapi/addentry.c
+++ b/source4/rpc_server/drsuapi/addentry.c
@@ -199,7 +199,8 @@ WERROR dcesrv_drsuapi_DsAddEntry(struct dcesrv_call_state *dce_call, TALLOC_CTX
ret = ldb_transaction_commit(b_state->sam_ctx);
if (ret != LDB_SUCCESS) {
- DEBUG(0,(__location__ ": DsAddEntry commit failed\n"));
+ DEBUG(0,(__location__ ": DsAddEntry commit failed: %s\n",
+ ldb_errstring(b_state->sam_ctx)));
return WERR_DS_DRA_INTERNAL_ERROR;
}