lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Fri Mar 11 19:02:59 2011
New Revision: 1388
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1388

Log:
fix problem with endless loop on incorrect password

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

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Fri Mar 11 16:49:22 2011        (r1387)
+++ nss-pam-ldapd/nslcd/myldap.c        Fri Mar 11 19:02:59 2011        (r1388)
@@ -901,10 +901,8 @@
     if (nexttry>=endtime)
     {
       if (search->session->binddn[0]=='\0')
-      {
         log_log(LOG_ERR,"no available LDAP server found: 
%s",ldap_err2string(rc));
-        return LDAP_UNAVAILABLE;
-      }
+      return rc;
     }
     /* sleep between tries */
     sleeptime=nexttry-time(NULL);
@@ -1706,7 +1704,6 @@
 
 int myldap_modify(MYLDAP_SESSION *session,const char *dn,LDAPMod *mods[])
 {
-  int rc;
   if (!is_valid_session(session)||(dn==NULL))
   {
     log_log(LOG_ERR,"myldap_passwd(): invalid parameter passed");
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits