1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 30fc3752c7)
This commit is contained in:
Andrew Bartlett 2008-01-16 15:48:28 +11:00
parent e72760b218
commit 5df2ac18e7

View 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;
}