diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-16 15:48:28 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-01-16 15:48:28 +1100 |
commit | 5df2ac18e7b2e2ab81a6ab5903addaf71b70db4a (patch) | |
tree | 5de370a89fca173660e7c4853f77e954345cbaaf /source4/rpc_server | |
parent | e72760b218e60acfc04c6c22a43820683172df09 (diff) | |
download | samba-5df2ac18e7b2e2ab81a6ab5903addaf71b70db4a.tar.gz samba-5df2ac18e7b2e2ab81a6ab5903addaf71b70db4a.tar.bz2 samba-5df2ac18e7b2e2ab81a6ab5903addaf71b70db4a.zip |
Print out the reason we can't delete the user in SAMR.
We need to be far more granular bout this - in particular, we need a
decide LDAP -> NTSTATUS conversion.
Andrew Bartlett
(This used to be commit 30fc3752c7573fcf8b1a41f7b3bc8dad860077f8)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 03f3601257..760d774f2e 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -2910,6 +2910,9 @@ static NTSTATUS dcesrv_samr_DeleteUser(struct dcesrv_call_state *dce_call, TALLO ret = ldb_delete(a_state->sam_ctx, a_state->account_dn); if (ret != 0) { + DEBUG(1, ("Failed to delete user: %s: %s\n", + ldb_dn_get_linearized(a_state->account_dn), + ldb_errstring(a_state->sam_ctx))); return NT_STATUS_UNSUCCESSFUL; } |