From 0d91334fe799f6b50a8265f9dc097411c3a29e18 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Mar 2007 16:49:16 +0000 Subject: r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind who did not run the idle events to drop ldap connections. Volker (This used to be commit af3308ce5a21220ff4c510de356dbaa6cf9ff997) --- source3/smbd/process.c | 3 --- source3/smbd/server.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index dbac553aea..11ef33679f 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1351,9 +1351,6 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t /* become root again if waiting */ change_to_root_user(); - /* run all registered idle events */ - smb_run_idle_events(t); - /* check if we need to reload services */ check_reload(t); diff --git a/source3/smbd/server.c b/source3/smbd/server.c index ab32d656d3..0ae2f3e836 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1010,7 +1010,7 @@ extern void build_options(BOOL screen); /* Initialise the password backed before the global_sam_sid to ensure that we fetch from ldap before we make a domain sid up */ - if(!initialize_password_db(False)) + if(!initialize_password_db(False, smbd_event_context())) exit(1); if (!secrets_init()) { -- cgit