lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1321 - in nss-pam-ldapd-0.7: . nslcd

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

nss-pam-ldapd commit: r1321 - in nss-pam-ldapd-0.7: . nslcd



Author: arthur
Date: Sat Dec 11 21:11:02 2010
New Revision: 1321
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1321

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

Modified:
   nss-pam-ldapd-0.7/   (props changed)
   nss-pam-ldapd-0.7/nslcd/pam.c

Modified: nss-pam-ldapd-0.7/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd-0.7/nslcd/pam.c       Fri Dec 10 15:49:30 2010        (r1320)
+++ nss-pam-ldapd-0.7/nslcd/pam.c       Sat Dec 11 21:11:02 2010        (r1321)
@@ -392,6 +392,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)
 {
@@ -401,7 +402,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