Print out the reason we can't delete the user in SAMR.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Jan 2008 04:48:28 +0000 (15:48 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Jan 2008 04:48:28 +0000 (15:48 +1100)
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)

source4/rpc_server/samr/dcesrv_samr.c

index 03f360125766a3efdee58910a6a43b35188f2b43..760d774f2ea6ebc46a8bcebaf199bb077f8e894f 100644 (file)
@@ -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;
        }