lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1814 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1814 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sun Nov 11 15:02:26 2012
New Revision: 1814
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1814&view=revision

Log:
log connection message before clearing error indicators to not hide these log 
messages in most configurations (fixes r1095)

Modified:
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Sun Nov 11 14:46:27 2012        (r1813)
+++ nss-pam-ldapd/nslcd/myldap.c        Sun Nov 11 15:02:26 2012        (r1814)
@@ -966,13 +966,13 @@
         rc=do_try_search(search);
         if (rc==LDAP_SUCCESS)
         {
-          /* update ok time */
           pthread_mutex_lock(&uris_mutex);
-          current_uri->firstfail=0;
-          current_uri->lastfail=0;
           /* check if we are coming back from an error */
           if 
((current_uri->lastfail>0)||(search->session->current_uri!=start_uri))
             log_log(LOG_INFO,"connected to LDAP server %s",current_uri->uri);
+          /* update ok time */
+          current_uri->firstfail=0;
+          current_uri->lastfail=0;
           pthread_mutex_unlock(&uris_mutex);
           /* flag the search as valid */
           search->valid=1;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/