lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Wed Nov 17 20:41:42 2010
New Revision: 1313
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1313

Log:
return correct kind of error code from try_pwmod() (bug)

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

Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c   Wed Nov 10 22:12:05 2010        (r1312)
+++ nss-pam-ldapd/nslcd/pam.c   Wed Nov 17 20:41:42 2010        (r1313)
@@ -403,6 +403,7 @@
   return 0;
 }
 
+/* perform an LDAP password modification, returns an LDAP status code */
 static int try_pwmod(const char *binddn,const char *userdn,
                      const char *oldpassword,const char *newpassword)
 {
@@ -412,7 +413,7 @@
   /* set up a new connection */
   session=myldap_create_session();
   if (session==NULL)
-    return NSLCD_PAM_AUTH_ERR;
+    return LDAP_UNAVAILABLE;
   /* set up credentials for the session */
   myldap_set_credentials(session,binddn,oldpassword);
   /* perform search for own object (just to do any kind of search) */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits