summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-08-22 11:02:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 18:06:57 +0200
commit66edf42c51f8591c93204b6490c103fa51346f47 (patch)
tree4d60cd3434c1ce2236e488a154720bdde2e75935 /src/providers/ldap/ldap_common.h
parent34a63c4a00096da7a8e09d49b5970bb1f807eddc (diff)
downloadsssd-66edf42c51f8591c93204b6490c103fa51346f47.tar.gz
sssd-66edf42c51f8591c93204b6490c103fa51346f47.tar.xz
sssd-66edf42c51f8591c93204b6490c103fa51346f47.zip
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.
Diffstat (limited to 'src/providers/ldap/ldap_common.h')
-rw-r--r--src/providers/ldap/ldap_common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h
index 1dd69f4e2..fb45845ef 100644
--- a/src/providers/ldap/ldap_common.h
+++ b/src/providers/ldap/ldap_common.h
@@ -63,9 +63,6 @@ struct sdap_id_ctx {
/* connection to a server */
struct sdap_id_conn_ctx *conn;
- /* cleanup loop timer */
- struct timeval last_purge;
-
struct sdap_server_opts *srv_opts;
};
@@ -168,8 +165,11 @@ int ldap_get_autofs_options(TALLOC_CTX *memctx,
errno_t ldap_setup_enumeration(struct sdap_id_ctx *ctx,
struct sdap_id_conn_ctx *conn,
struct sdap_domain *sdom);
-errno_t ldap_id_cleanup(struct sdap_id_ctx *ctx);
-int ldap_id_cleanup_set_timer(struct sdap_id_ctx *ctx, struct timeval tv);
+errno_t ldap_id_cleanup(struct sdap_options *opts,
+ struct sss_domain_info *dom);
+int ldap_id_cleanup_create_timer(struct sdap_id_ctx *ctx,
+ struct sdap_domain *sdom,
+ struct timeval tv);
void sdap_mark_offline(struct sdap_id_ctx *ctx);