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/include/smbldap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h index 390b8f681a..67061fec86 100644 --- a/source3/include/smbldap.h +++ b/source3/include/smbldap.h @@ -128,6 +128,7 @@ extern ATTRIB_MAP_ENTRY trustpw_attr_list[]; have to worry about LDAP structure types */ NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx, + struct event_context *event_ctx, const char *location, struct smbldap_state **smbldap_state); @@ -169,7 +170,8 @@ struct smbldap_state { unsigned int num_failures; time_t last_use; - smb_event_id_t event_id; + struct event_context *event_context; + struct timed_event *idle_event; struct timeval last_rebind; }; -- cgit