s3-winbindd: call gp_run_startup_scripts and gp_run_shutdown_scripts.
authorGünther Deschner <gd@samba.org>
Wed, 2 Sep 2009 19:49:16 +0000 (21:49 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 19 May 2010 22:57:23 +0000 (00:57 +0200)
Guenther

source3/winbindd/winbindd.c

index 0863ba4ba320f5c48ac6334b513422687bf90b21..e94cee89478742ee2152f7b317a926e8b6c6798c 100644 (file)
@@ -376,6 +376,7 @@ static void msg_shutdown(struct messaging_context *msg,
        /* only the parent waits for this message */
        DEBUG(0,("Got shutdown message\n"));
        terminate(true);
+       gp_run_shutdown_scripts(0);
 }
 
 
@@ -1110,6 +1111,11 @@ void winbindd_register_handlers(void)
        init_idmap_child();
        init_locator_child();
 
+       if (lp_winbind_group_policy()) {
+               init_group_policy_child();
+               fork_group_policy_child();
+       }
+
        smb_nscd_flush_user_cache();
        smb_nscd_flush_group_cache();