nss-pam-ldapd commit: r1939 - nss-pam-ldapd-0.8/pam
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1939 - nss-pam-ldapd-0.8/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: r1939 - nss-pam-ldapd-0.8/pam
- Date: Sun, 28 Apr 2013 13:15:18 +0200 (CEST)
Author: arthur
Date: Sun Apr 28 13:15:17 2013
New Revision: 1939
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1939&view=revision
Log:
save the old password if either the authentication or the authorisation
response is NEW_AUTHTOK_REQD (c89c41b from 0.9)
Modified:
nss-pam-ldapd-0.8/pam/pam.c
Modified: nss-pam-ldapd-0.8/pam/pam.c
==============================================================================
--- nss-pam-ldapd-0.8/pam/pam.c Sun Apr 28 13:08:53 2013 (r1938)
+++ nss-pam-ldapd-0.8/pam/pam.c Sun Apr 28 13:15:17 2013 (r1939)
@@ -2,7 +2,7 @@
pam.c - pam module functions
Copyright (C) 2009 Howard Chu
- Copyright (C) 2009, 2010, 2011, 2012 Arthur de Jong
+ Copyright (C) 2009, 2010, 2011, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -443,7 +443,7 @@
/* save username */
ctx->user=strdup(username);
/* if password change is required, save old password in context */
- if (ctx->authz==PAM_NEW_AUTHTOK_REQD)
+ if
((resp.res==PAM_NEW_AUTHTOK_REQD)||(ctx->saved_authz.res==PAM_NEW_AUTHTOK_REQD))
ctx->oldpassword=strdup(passwd);
/* update caller's idea of the user name */
if ( ctx->tmpluser && ctx->tmpluser[0] &&
(strcmp(ctx->tmpluser,username)!=0) )
--
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: r1939 - nss-pam-ldapd-0.8/pam,
Commits of the nss-pam-ldapd project