summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-19 04:24:21 +0200
committerVolker Lendecke <vl@samba.org>2008-05-19 14:56:15 +0200
commit266cdce580ba61a0e00b12b2637f4bc11599ad20 (patch)
treed854face3c61d748aa6f346ac3d9af2fa7e174e9
parentdc2e8823d21ce8d6ba4b8a083badd270133fdc43 (diff)
downloadsamba-266cdce580ba61a0e00b12b2637f4bc11599ad20.tar.gz
samba-266cdce580ba61a0e00b12b2637f4bc11599ad20.tar.bz2
samba-266cdce580ba61a0e00b12b2637f4bc11599ad20.zip
Don't block smbcontrol online/offline if !"winbind offline logons"
There's no point to block these, winbind will ignore them anyway. Jerry, Jeremy, we definitely need a chance to trigger a reconnection attempt after a DC has been rebooted. Right now winbind's reaction to a single rebooted DC is to declare it offline. It will not try before a "winbind cache timeout" timeout. If the admin sets this to an hour or longer for performance reasons, we're screwed. Reboot your DC, no logon for an hour. Volker (This used to be commit cb065a8995fa0a18f9124d0bdea70c692d6b5c58)
-rw-r--r--source3/utils/smbcontrol.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index db2eefe1e2..6699763cd2 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -865,13 +865,6 @@ static bool do_winbind_online(struct messaging_context *msg_ctx,
return False;
}
- if (!lp_winbind_offline_logon()) {
- fprintf(stderr, "The parameter \"winbind offline logon\" must "
- "be set in the [global] section of smb.conf for this "
- "command to be allowed.\n");
- return False;
- }
-
/* Remove the entry in the winbindd_cache tdb to tell a later
starting winbindd that we're online. */
@@ -901,13 +894,6 @@ static bool do_winbind_offline(struct messaging_context *msg_ctx,
return False;
}
- if (!lp_winbind_offline_logon()) {
- fprintf(stderr, "The parameter \"winbind offline logon\" must "
- "be set in the [global] section of smb.conf for this "
- "command to be allowed.\n");
- return False;
- }
-
/* Create an entry in the winbindd_cache tdb to tell a later
starting winbindd that we're offline. We may actually create
it here... */