summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_id_op.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-10-21 13:37:37 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-22 19:11:36 +0200
commit0a320004a9937295ba66a348d1e60682cfdceb26 (patch)
treeb29163f7a61d90cb5d872c6514e0b03f9356d0c9 /src/providers/ldap/sdap_id_op.c
parent9de5878d247b77b8f520a57727cd55f42e179caa (diff)
downloadsssd-0a320004a9937295ba66a348d1e60682cfdceb26.tar.gz
sssd-0a320004a9937295ba66a348d1e60682cfdceb26.tar.xz
sssd-0a320004a9937295ba66a348d1e60682cfdceb26.zip
Add unconditional online callbacks
Currently online callbacks are only executed if the backend was offline before. This patch add a new class of callback which are always called if the backend gets a request to go online. They can be used e.g. to reset timeouts until a more sophisticated method (OpenLMI, sssctl) is available.
Diffstat (limited to 'src/providers/ldap/sdap_id_op.c')
-rw-r--r--src/providers/ldap/sdap_id_op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_id_op.c b/src/providers/ldap/sdap_id_op.c
index be25b5da4..52cf78569 100644
--- a/src/providers/ldap/sdap_id_op.c
+++ b/src/providers/ldap/sdap_id_op.c
@@ -692,6 +692,7 @@ static void sdap_id_op_connect_done(struct tevent_req *subreq)
conn_cache->cached_connection = conn_data;
/* Run any post-connection routines */
+ be_run_unconditional_online_cb(conn_cache->id_conn->id_ctx->be);
be_run_online_cb(conn_cache->id_conn->id_ctx->be);
} else {