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 | |
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')
-rw-r--r-- | pam/Makefile.am | 3 | ||||
-rw-r--r-- | pam/pam.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pam/Makefile.am b/pam/Makefile.am index 765776c..65decb7 100644 --- a/pam/Makefile.am +++ b/pam/Makefile.am @@ -25,7 +25,8 @@ AM_CFLAGS = -fPIC pam_ldap_so_SOURCES = ../nslcd.h ../common/nslcd-prot.h \ ../compat/attrs.h pam.c common.h pam_ldap_so_LDFLAGS = -shared -Wl,--version-script,\$(srcdir)/exports.linux -pam_ldap_so_LDADD = ../common/libtio.a ../common/libprot.a -lpam +pam_ldap_so_LDADD = ../common/libtio.a ../common/libprot.a -lpam \ + ../compat/libcompat.a EXTRA_DIST = exports.linux @@ -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 */ |