summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_dual.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-06 21:10:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:49 -0500
commit09fee9aa1801c21c8e51489eddde10130f4605ad (patch)
treec3aacc2082f151fb5d4ded97aaa61800a014e33b /source3/nsswitch/winbindd_dual.c
parent89fd4444aff2c858605f71d46715e3b366e82749 (diff)
downloadsamba-09fee9aa1801c21c8e51489eddde10130f4605ad.tar.gz
samba-09fee9aa1801c21c8e51489eddde10130f4605ad.tar.bz2
samba-09fee9aa1801c21c8e51489eddde10130f4605ad.zip
r22715: When our primary domain does on or offline, make sure to send a msg
to the idmap child. Also remove the check for the global offline state in child_msg_offline() as this means we cannot mark domains offline due to network outages. (This used to be commit 1b99e8b521eae3e9fa775577de01116bb20fb8b3)
Diffstat (limited to 'source3/nsswitch/winbindd_dual.c')
-rw-r--r--source3/nsswitch/winbindd_dual.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index aa6b356679..58ed19be32 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -504,21 +504,6 @@ void winbind_msg_offline(int msg_type, struct process_id src,
}
DEBUG(5,("winbind_msg_offline: marking %s offline.\n", domain->name));
set_domain_offline(domain);
-
- /* Send an offline message to the idmap child when our
- primary domain goes offline */
-
- if ( domain->primary ) {
- struct winbindd_child *idmap = idmap_child();
-
- if ( idmap->pid != 0 ) {
- message_send_pid(pid_to_procid(idmap->pid),
- MSG_WINBIND_OFFLINE,
- domain->name,
- strlen(domain->name)+1,
- False);
- }
- }
}
for (child = children; child != NULL; child = child->next) {
@@ -703,12 +688,6 @@ static void child_msg_offline(int msg_type, struct process_id src,
return;
}
- /* Set our global state as offline. */
- if (!set_global_winbindd_state_offline()) {
- DEBUG(10,("child_msg_offline: offline request failed.\n"));
- return;
- }
-
/* Mark the requested domain offline. */
for (domain = domain_list(); domain; domain = domain->next) {