mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
Add helpful debug of DACL for errors on ACL access.
Jeremy.
This commit is contained in:
parent
64e588f868
commit
b8c87c43dd
@ -102,8 +102,6 @@ NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
|
||||
access_mask,
|
||||
access_granted);
|
||||
|
||||
TALLOC_FREE(sd);
|
||||
|
||||
DEBUG(10,("smbd_check_open_rights: file %s requesting "
|
||||
"0x%x returning 0x%x (%s)\n",
|
||||
smb_fname_str_dbg(smb_fname),
|
||||
@ -111,6 +109,16 @@ NTSTATUS smbd_check_open_rights(struct connection_struct *conn,
|
||||
(unsigned int)*access_granted,
|
||||
nt_errstr(status) ));
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
DEBUG(10,("smbd_check_open_rights: acl for %s is:\n",
|
||||
smb_fname_str_dbg(smb_fname) ));
|
||||
NDR_PRINT_DEBUG(security_descriptor, sd);
|
||||
}
|
||||
}
|
||||
|
||||
TALLOC_FREE(sd);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user