diff options
author | eindenbom <eindenbom@gmail.com> | 2010-07-02 18:46:53 +0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-07-09 11:44:06 -0400 |
commit | 54577e54d1b6300aeb348087372c14ed72530f88 (patch) | |
tree | 47af5ec5db8ab7cd430a17545ac563023f02c919 /src/providers/ldap | |
parent | 2d7a7b0140a4d3fcef9148900276e24f82e33866 (diff) | |
download | sssd-54577e54d1b6300aeb348087372c14ed72530f88.tar.gz sssd-54577e54d1b6300aeb348087372c14ed72530f88.tar.bz2 sssd-54577e54d1b6300aeb348087372c14ed72530f88.zip |
Add an interface to try next fail-over server after connection to the active server was unexpectedly dropped.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_id_op.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_id_op.c b/src/providers/ldap/sdap_id_op.c index de498bd7..1e20c75e 100644 --- a/src/providers/ldap/sdap_id_op.c +++ b/src/providers/ldap/sdap_id_op.c @@ -703,6 +703,9 @@ int sdap_id_op_done(struct sdap_id_op *op, int retval, int *dp_err_out) && op->conn_data == op->conn_cache->cached_connection) { /* do not reuse failed connection */ op->conn_cache->cached_connection = NULL; + + DEBUG(5, ("communication error on cached connection, moving to next server\n")); + be_fo_try_next_server(op->conn_cache->be, op->conn_cache->service->name); } int dp_err; |