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
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1832 - nss-pam-ldapd/pam
- Date: Sat, 17 Nov 2012 17:40:08 +0100 (CET)
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/
- nss-pam-ldapd commit: r1832 - nss-pam-ldapd/pam,
Commits of the nss-pam-ldapd project