summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authoreindenbom <eindenbom@gmail.com>2010-07-09 18:03:37 +0400
committerStephen Gallagher <sgallagh@redhat.com>2010-07-09 11:44:07 -0400
commit1639954090616f9e868a083f358c87e381b3fb78 (patch)
tree899fd806586f20900c468926d38550527b19cddb /src/providers/ldap
parent056901f031d8df43ec4fc7e67bc43dd5d967de71 (diff)
downloadsssd-1639954090616f9e868a083f358c87e381b3fb78.tar.gz
sssd-1639954090616f9e868a083f358c87e381b3fb78.tar.xz
sssd-1639954090616f9e868a083f358c87e381b3fb78.zip
Use new LDAP connection framework in IPA dynamic DNS forwarder.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_connection.c7
-rw-r--r--src/providers/ldap/sdap_id_op.c4
2 files changed, 4 insertions, 7 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index 2af6aaeab..2be0af208 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1184,8 +1184,6 @@ static void sdap_cli_auth_done(struct tevent_req *subreq)
{
struct tevent_req *req = tevent_req_callback_data(subreq,
struct tevent_req);
- struct sdap_cli_connect_state *state = tevent_req_data(req,
- struct sdap_cli_connect_state);
enum sdap_result result;
int ret;
@@ -1200,11 +1198,6 @@ static void sdap_cli_auth_done(struct tevent_req *subreq)
return;
}
- /* Reconnection succeeded
- * Run any post-connection routines
- */
- be_run_online_cb(state->be);
-
tevent_req_done(req);
}
diff --git a/src/providers/ldap/sdap_id_op.c b/src/providers/ldap/sdap_id_op.c
index 1e20c75e1..a005f0f70 100644
--- a/src/providers/ldap/sdap_id_op.c
+++ b/src/providers/ldap/sdap_id_op.c
@@ -627,6 +627,10 @@ static void sdap_id_op_connect_done(struct tevent_req *subreq)
if (ret == EOK && conn_data->sh->connected && !be_is_offline(conn_cache->be)) {
DEBUG(9, ("caching successful connection after %d notifies\n", notify_count));
conn_cache->cached_connection = conn_data;
+
+ /* Run any post-connection routines */
+ be_run_online_cb(conn_cache->be);
+
} else {
if (conn_cache->cached_connection == conn_data) {
conn_cache->cached_connection = NULL;