From 66edf42c51f8591c93204b6490c103fa51346f47 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 22 Aug 2013 11:02:32 +0200 Subject: LDAP: Make the cleanup task reusable for subdomains Instead of always performing the cleanup on the main domain, the task now accepts a sdap_domain structure to perform the cleanup on. This change will make the cleanup task reusable for subdomains. --- src/providers/ldap/sdap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/providers/ldap/sdap.h') diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h index 5da27fe8..441ac904 100644 --- a/src/providers/ldap/sdap.h +++ b/src/providers/ldap/sdap.h @@ -384,9 +384,12 @@ struct sdap_domain { /* Need to modify the list from a talloc destructor */ struct sdap_domain **head; + /* Enumeration and cleanup periodic task */ struct be_ptask *enum_task; /* enumeration loop timer */ struct timeval last_enum; + /* cleanup loop timer */ + struct timeval last_purge; }; struct sdap_options { -- cgit