Pretty print out SD's on get/set.
authorJeremy Allison <jra@samba.org>
Thu, 13 Nov 2008 03:26:58 +0000 (19:26 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 13 Nov 2008 03:26:58 +0000 (19:26 -0800)
Jeremy.

source/smbd/nttrans.c

index 13caf77b983a7f880c6ec4f00d755f429c624199..4457883063877259c8102dd3ceb9740a3887572f 100644 (file)
@@ -774,6 +774,11 @@ static NTSTATUS set_sd(files_struct *fsp, uint8 *data, uint32 sd_len,
                security_info_sent &= ~DACL_SECURITY_INFORMATION;
        }
 
+       if (DEBUGLEVEL >= 10) {
+               DEBUG(10,("set_sd for file %s\n", fsp->fsp_name ));
+               NDR_PRINT_DEBUG(security_descriptor, psd);
+       }
+
        if (fsp->fh->fd != -1) {
                status = SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd);
        }
@@ -1647,6 +1652,11 @@ static void call_nt_transact_query_security_desc(connection_struct *conn,
 
        DEBUG(3,("call_nt_transact_query_security_desc: sd_size = %lu.\n",(unsigned long)sd_size));
 
+       if (DEBUGLEVEL >= 10) {
+               DEBUG(10,("call_nt_transact_query_security_desc for file %s\n", fsp->fsp_name ));
+               NDR_PRINT_DEBUG(security_descriptor, psd);
+       }
+
        SIVAL(params,0,(uint32)sd_size);
 
        if (max_data_count < sd_size) {