]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Reduce the level and improve a couple of debug messages
authorSamuel Cabrero <scabrero@samba.org>
Tue, 8 Feb 2022 09:06:18 +0000 (10:06 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 9 Feb 2022 20:20:36 +0000 (20:20 +0000)
The commit 1d5c546 changed the debug message printed when setting
winbind to offline state and offline logons are disabled from
level 10 to level 0. This message isn't really an error and might
scare some users, e.g. https://bugzilla.suse.com/show_bug.cgi?id=1195573

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Feb  9 20:20:36 UTC 2022 on sn-devel-184

source3/winbindd/winbindd_cache.c

index 01bf94855c0ea06c35e44b5eb3df9b8cb91c6168..631b3277164edf1db9fef69b5171f006853cef6d 100644 (file)
@@ -3438,7 +3438,8 @@ bool set_global_winbindd_state_offline(void)
        }
 
        if (!lp_winbind_offline_logon()) {
-               DBG_ERR("Rejecting to set winbind offline\n");
+               DBG_DEBUG("Rejecting request to set winbind offline, "
+                       "offline logons are disabled in smb.conf\n");
                return false;
        }
 
@@ -3466,7 +3467,8 @@ void set_global_winbindd_state_online(void)
        DEBUG(10,("set_global_winbindd_state_online: online requested.\n"));
 
        if (!lp_winbind_offline_logon()) {
-               DEBUG(10,("set_global_winbindd_state_online: rejecting.\n"));
+               DBG_DEBUG("Rejecting request to set winbind online, "
+                       "offline logons are disabled in smb.conf.\n");
                return;
        }