diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-10-10 10:02:27 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-10-14 10:14:51 +0200 |
commit | 920f8013ad5c57aaa941d5c7aea335726ed0bbae (patch) | |
tree | 33226983406dab8267373943e14e5b5bbe5fcc27 | |
parent | 2d226b2717d0a30186636d17a8d890e1b7de8151 (diff) | |
download | samba-920f8013ad5c57aaa941d5c7aea335726ed0bbae.tar.gz |
s3-winbind: Register handlers for domain online/offline messages.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10194
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit fc5941622010843d823b5c245eccc68d1d3bce19)
-rw-r--r-- | source3/winbindd/winbindd.c | 6 | ||||
-rw-r--r-- | source3/winbindd/winbindd_dual.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 30771ebfb38..f447059248b 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1078,6 +1078,12 @@ void winbindd_register_handlers(void) messaging_register(winbind_messaging_context(), NULL, MSG_WINBIND_ONLINESTATUS, winbind_msg_onlinestatus); + /* Handle domain online/offline messages for domains */ + messaging_register(winbind_messaging_context(), NULL, + MSG_WINBIND_DOMAIN_OFFLINE, winbind_msg_domain_offline); + messaging_register(winbind_messaging_context(), NULL, + MSG_WINBIND_DOMAIN_ONLINE, winbind_msg_domain_online); + messaging_register(winbind_messaging_context(), NULL, MSG_DUMP_EVENT_LIST, winbind_msg_dump_event_list); diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index f4edf1dc02d..12dd8ebb85b 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -1223,6 +1223,11 @@ NTSTATUS winbindd_reinit_after_fork(const struct winbindd_child *myself, messaging_deregister(winbind_messaging_context(), MSG_DEBUG, NULL); + messaging_deregister(winbind_messaging_context(), + MSG_WINBIND_DOMAIN_OFFLINE, NULL); + messaging_deregister(winbind_messaging_context(), + MSG_WINBIND_DOMAIN_ONLINE, NULL); + /* We have destroyed all events in the winbindd_event_context * in reinit_after_fork(), so clean out all possible pending * event pointers. */ |