diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-17 17:08:49 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-17 17:08:49 +0200 |
commit | 3d019ede58bd85317a1be1a25a8e45476deaf9c0 (patch) | |
tree | 26e558e0a103123c3b33e4cd62018a94b24eca0c /pam/pam.c | |
parent | 5a3eb1df560f29c4692e01594fc63d22bb4c50ee (diff) |
provide a replacement for the pam_get_authtok() functions for systems without it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1008 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pam/pam.c')
-rw-r--r-- | pam/pam.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -31,6 +31,7 @@ #include "common.h" #include "compat/attrs.h" +#include "compat/pam_compat.h" /* these are defined (before including pam_modules.h) for staticly linking */ #define PAM_SM_AUTH @@ -681,7 +682,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh,int flags,int argc,const char **argv) root is unlikely to be in LDAP anyway but perhaps we can check the requested username and only use the administrator if that isn't root) */ - /* prelimenary check, just see if we can connect to the LDAP server */ + /* prelimenary check, just see if we can connect to the LDAP server + and authenticate with the current password */ if (flags&PAM_PRELIM_CHECK) { /* get old (current) password */ |