diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-06 18:59:47 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-06 18:59:47 +1100 |
commit | a44030fc10217940c94a927c3d0988648058e0e2 (patch) | |
tree | 551b6d0768afa943449240f37bcfc9cd938a847a | |
parent | 0285d568c55410f3e2a5cfda5693873be2841151 (diff) | |
download | samba-a44030fc10217940c94a927c3d0988648058e0e2.tar.gz samba-a44030fc10217940c94a927c3d0988648058e0e2.tar.bz2 samba-a44030fc10217940c94a927c3d0988648058e0e2.zip |
s4-drs: added some debug lines to DsAddEntry()
-rw-r--r-- | source4/rpc_server/drsuapi/addentry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/drsuapi/addentry.c b/source4/rpc_server/drsuapi/addentry.c index 7bf8f39592..2c913dd91d 100644 --- a/source4/rpc_server/drsuapi/addentry.c +++ b/source4/rpc_server/drsuapi/addentry.c @@ -180,6 +180,7 @@ WERROR dcesrv_drsuapi_DsAddEntry(struct dcesrv_call_state *dce_call, TALLOC_CTX if (!W_ERROR_IS_OK(status)) { r->out.ctr->ctr3.error->info1.status = status; ldb_transaction_cancel(b_state->sam_ctx); + DEBUG(0,(__location__ ": DsAddEntry failed - %s\n", win_errstr(status))); return status; } @@ -198,11 +199,13 @@ WERROR dcesrv_drsuapi_DsAddEntry(struct dcesrv_call_state *dce_call, TALLOC_CTX if (!W_ERROR_IS_OK(status)) { r->out.ctr->ctr3.error->info1.status = status; ldb_transaction_cancel(b_state->sam_ctx); + DEBUG(0,(__location__ ": DsAddEntry add SPNs failed - %s\n", win_errstr(status))); return status; } ret = ldb_transaction_commit(b_state->sam_ctx); if (ret != LDB_SUCCESS) { + DEBUG(0,(__location__ ": DsAddEntry commit failed\n")); return WERR_DS_DRA_INTERNAL_ERROR; } |