diff options
author | eindenbom <eindenbom@gmail.com> | 2010-07-09 18:03:37 +0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-09 11:44:07 -0400 |
commit | 1639954090616f9e868a083f358c87e381b3fb78 (patch) | |
tree | 899fd806586f20900c468926d38550527b19cddb /src/providers/ldap | |
parent | 056901f031d8df43ec4fc7e67bc43dd5d967de71 (diff) | |
download | sssd-1639954090616f9e868a083f358c87e381b3fb78.tar.gz sssd-1639954090616f9e868a083f358c87e381b3fb78.tar.bz2 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.c | 7 | ||||
-rw-r--r-- | src/providers/ldap/sdap_id_op.c | 4 |
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 2af6aaea..2be0af20 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 1e20c75e..a005f0f7 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; |