From 54577e54d1b6300aeb348087372c14ed72530f88 Mon Sep 17 00:00:00 2001 From: eindenbom Date: Fri, 2 Jul 2010 18:46:53 +0400 Subject: Add an interface to try next fail-over server after connection to the active server was unexpectedly dropped. --- src/providers/ldap/sdap_id_op.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/providers/ldap') diff --git a/src/providers/ldap/sdap_id_op.c b/src/providers/ldap/sdap_id_op.c index de498bd77..1e20c75e1 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; -- cgit