From 3d019ede58bd85317a1be1a25a8e45476deaf9c0 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 17 Oct 2009 15:08:49 +0000 Subject: 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 --- pam/pam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pam/pam.c') diff --git a/pam/pam.c b/pam/pam.c index 09ec6ac..f47e1c5 100644 --- a/pam/pam.c +++ b/pam/pam.c @@ -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 */ -- cgit v1.2.3