r2016: Add message to ease access-control-debugging.
authorGünther Deschner <gd@samba.org>
Tue, 24 Aug 2004 13:26:31 +0000 (13:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:28 +0000 (10:52 -0500)
Guenther
(This used to be commit bc64bb0d206c54487e372824a14c38a4ba8f3c5a)

source3/smbd/uid.c

index de2f96450fc7660c03abd83b6907ecd35b6bf3d0..77dc19b87bf200d139fe22255d31f38a07b5c987 100644 (file)
@@ -130,6 +130,7 @@ static BOOL check_user_ok(connection_struct *conn, user_struct *vuser,int snum)
                /* smb.conf allows r/w, but the security descriptor denies
                 * write. Fall back to looking at readonly. */
                readonly_share = True;
+               DEBUG(5,("falling back to read-only access-evaluation due to security descriptor\n"));
        }
 
        if (!share_access_check(conn, snum, vuser, readonly_share ? FILE_READ_DATA : FILE_WRITE_DATA)) {