From a47a591225593243c89da7df1cf2a58cffc37653 Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Jun 17 2016 14:03:25 +0000 Subject: Do not log "connection to the LDAP server was lost" on forced reconnects. This is a cosmetic change which will be used in code which opens and closes multiple SyncRepl connections. https://fedorahosted.org/bind-dyndb-ldap/ticket/162 --- diff --git a/src/ldap_helper.c b/src/ldap_helper.c index af7f5c4..b922371 100644 --- a/src/ldap_helper.c +++ b/src/ldap_helper.c @@ -2726,7 +2726,7 @@ handle_connection_error(ldap_instance_t *ldap_inst, ldap_connection_t *ldap_conn /* Try to reconnect on other errors. */ log_ldap_error(ldap_conn->handle, "connection error"); reconnect: - if (ldap_conn->handle == NULL) + if (ldap_conn->handle == NULL && force == ISC_FALSE) log_error("connection to the LDAP server was lost"); result = ldap_connect(ldap_inst, ldap_conn, force); if (result == ISC_R_SUCCESS)