1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

smbd: Change logging level for denied share access

A user without access in the share acl can easily trigger those
warnings. Change the logging level, so that they do not appear with the
default logging level.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul 31 01:17:30 CEST 2014 on sn-devel-104
This commit is contained in:
Christof Schmitt 2014-07-30 08:42:33 -07:00 committed by Jeremy Allison
parent 27b0d9740e
commit 9ee7b022e5
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
if ((conn->share_access & FILE_WRITE_DATA) == 0) {
if ((conn->share_access & FILE_READ_DATA) == 0) {
/* No access, read or write. */
DEBUG(0,("create_conn_struct: connection to %s "
DEBUG(3,("create_conn_struct: connection to %s "
"denied due to security "
"descriptor.\n",
servicename));

View File

@ -147,7 +147,7 @@ NTSTATUS check_user_share_access(connection_struct *conn,
if ((share_access & (FILE_READ_DATA|FILE_WRITE_DATA)) == 0) {
/* No access, read or write. */
DEBUG(0,("user %s connection to %s denied due to share "
DEBUG(3,("user %s connection to %s denied due to share "
"security descriptor.\n",
session_info->unix_info->unix_name,
lp_servicename(talloc_tos(), snum)));