diff options
author | Marc Muehlfeld <mmuehlfeld@samba.org> | 2017-10-11 09:49:45 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-10-12 21:14:13 +0200 |
commit | 36cbb4ad49177d346ee5fe19a541dc71b4a73fdb (patch) | |
tree | c7d68f8cea91930c55b1d511dabb720d45165d18 /source3/rpc_server | |
parent | 2717263c144c5f5552c348665a7b4a23991027d9 (diff) | |
download | samba-36cbb4ad49177d346ee5fe19a541dc71b4a73fdb.tar.gz |
Updated error message text and reduced its debug level
Previously, "net rpc share add|remove" commands failed if no
"add|delete share command" parameter was set in smb.conf. However,
the error was only logged at level 10 and not very clear.
This patch updates the error message text and sets the log level of this
error to 1 to make it more obvious what is missing.
Signed-off-by: Marc Muehlfeld <mmuehlfeld@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index f3173aee42f..2a8cf8de650 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -1984,7 +1984,7 @@ WERROR _srvsvc_NetShareAdd(struct pipes_struct *p, return WERR_ACCESS_DENIED; if (!lp_add_share_command(talloc_tos()) || !*lp_add_share_command(talloc_tos())) { - DEBUG(10,("_srvsvc_NetShareAdd: No add share command\n")); + DBG_WARNING("_srvsvc_NetShareAdd: No \"add share command\" parameter set in smb.conf.\n"); return WERR_ACCESS_DENIED; } @@ -2196,7 +2196,7 @@ WERROR _srvsvc_NetShareDel(struct pipes_struct *p, return WERR_ACCESS_DENIED; if (!lp_delete_share_command(talloc_tos()) || !*lp_delete_share_command(talloc_tos())) { - DEBUG(10,("_srvsvc_NetShareDel: No delete share command\n")); + DBG_WARNING("_srvsvc_NetShareDel: No \"delete share command\" parameter set in smb.conf.\n"); return WERR_ACCESS_DENIED; } |