summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_private.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-06-07 15:59:26 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-06-09 08:29:34 -0400
commit7bfc287b693d3696bd5b3c60bdb7e543eb230f9b (patch)
treed9737879f92efe07e7a1e771ffd0e61c7c6a8b20 /src/providers/ldap/sdap_async_private.h
parent8c804f6c4c6d5b701b2d688e924b6c2c70057565 (diff)
downloadsssd-7bfc287b693d3696bd5b3c60bdb7e543eb230f9b.tar.gz
sssd-7bfc287b693d3696bd5b3c60bdb7e543eb230f9b.tar.xz
sssd-7bfc287b693d3696bd5b3c60bdb7e543eb230f9b.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.h1
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 727cee2e0..ac91a0105 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);