diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-07 15:59:26 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-09 08:29:47 -0400 |
commit | 48c3ce82e0c0fc061e00cb7ddf4f145dfd465edc (patch) | |
tree | a8a33a2edd7f9ce9ef0c92f0e6dbc3708494a600 /src/providers/ldap/sdap_async_private.h | |
parent | 83aa1c2629eb7600dd2b6b207daa709a333e2720 (diff) | |
download | sssd_unused-48c3ce82e0c0fc061e00cb7ddf4f145dfd465edc.tar.gz sssd_unused-48c3ce82e0c0fc061e00cb7ddf4f145dfd465edc.tar.xz sssd_unused-48c3ce82e0c0fc061e00cb7ddf4f145dfd465edc.zip |
Disable connection callbacks when going online
Under certain circumstances, the openldap libraries will continue
internally trying to reconnect to a connection lost (as during a
cable-pull test). We need to drop the reconnection callbacks when
marking the backend offline in order to guarantee that they are
not called with an invalid sdap_handle.
Diffstat (limited to 'src/providers/ldap/sdap_async_private.h')
-rw-r--r-- | src/providers/ldap/sdap_async_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_private.h b/src/providers/ldap/sdap_async_private.h index 727cee2e..ac91a010 100644 --- a/src/providers/ldap/sdap_async_private.h +++ b/src/providers/ldap/sdap_async_private.h @@ -33,6 +33,7 @@ void sdap_ldap_result(struct tevent_context *ev, struct tevent_fd *fde, int setup_ldap_connection_callbacks(struct sdap_handle *sh, struct tevent_context *ev); +int remove_ldap_connection_callbacks(struct sdap_handle *sh); int get_fd_from_ldap(LDAP *ldap, int *fd); |