lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1832 - nss-pam-ldapd/pam

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

nss-pam-ldapd commit: r1832 - nss-pam-ldapd/pam



Author: arthur
Date: Sat Nov 17 17:40:08 2012
New Revision: 1832
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1832&view=revision

Log:
use pam_modutil_getpwnam() instead of getpwnam() in PAM module

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

Modified: nss-pam-ldapd/pam/pam.c
==============================================================================
--- nss-pam-ldapd/pam/pam.c     Sat Nov 17 17:38:41 2012        (r1831)
+++ nss-pam-ldapd/pam/pam.c     Sat Nov 17 17:40:08 2012        (r1832)
@@ -610,7 +610,7 @@
   if (flags&PAM_PRELIM_CHECK)
   {
     /* see if the user is trying to modify another user's password */
-    pwent=getpwnam(username);
+    pwent=pam_modutil_getpwnam(args->pamh,username);
     myuid=getuid();
     if 
((pwent!=NULL)&&(pwent->pw_uid!=myuid)&&(!(flags&PAM_CHANGE_EXPIRED_AUTHTOK)))
     {
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/