Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pam
Commit message (Collapse)AuthorAgeFilesLines
* rename symbol map files and check for the linker option ↵Arthur de Jong2010-06-152-3/+6
| | | | | | to specify the file with git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1143 ef36b2f9-881f-0410-afb5-c4e39611909c
* make include guard names consistent throughout the ↵Arthur de Jong2010-06-141-3/+3
| | | | | | source and avoid conflicts with system headers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1140 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix nullok test for password modificationArthur de Jong2010-06-041-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1134 ef36b2f9-881f-0410-afb5-c4e39611909c
* simplify PAM module splitting remapping for ignore_* ↵Arthur de Jong2010-06-021-95/+61
| | | | | | options to a separate function, parsing of try_first_pass and use_first_pass is done by pam_get_authtok(), don't report session errors to the user and make error handling consistent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1131 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement an nullok PAM option and disable empty ↵Arthur de Jong2010-06-011-1/+18
| | | | | | passwords by default git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1129 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't log failure to do nslcd request to user and log ↵Arthur de Jong2010-06-011-5/+5
| | | | | | authentication errors during password change git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1128 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typoArthur de Jong2010-05-311-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1125 ef36b2f9-881f-0410-afb5-c4e39611909c
* make code more consistentArthur de Jong2010-05-241-9/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1120 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't store use_authtok because pam_get_authtok() looks ↵Arthur de Jong2010-05-241-3/+1
| | | | | | at the arguments itself git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1118 ef36b2f9-881f-0410-afb5-c4e39611909c
* print uid as a longArthur de Jong2010-05-141-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1107 ef36b2f9-881f-0410-afb5-c4e39611909c
* perform logging from PAM module to syslog and support ↵Arthur de Jong2010-05-142-25/+91
| | | | | | the debug option to log debugging information git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1106 ef36b2f9-881f-0410-afb5-c4e39611909c
* centralise initialising functions needed for every PAM ↵Arthur de Jong2010-05-131-116/+60
| | | | | | call into one function git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1105 ef36b2f9-881f-0410-afb5-c4e39611909c
* also use PAM username instead of one from context for ↵Arthur de Jong2010-05-131-3/+4
| | | | | | session open and close git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1103 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace my_pam_get_authtok() with standard ↵Arthur de Jong2010-05-131-113/+16
| | | | | | pam_get_authtok() function, get rid of get_old_password() and general cleanups and simplifications git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1102 ef36b2f9-881f-0410-afb5-c4e39611909c
* make parsing configuration options global, reorganise a ↵Arthur de Jong2010-05-121-270/+231
| | | | | | bit and make code more consistent and easier to read git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1101 ef36b2f9-881f-0410-afb5-c4e39611909c
* only log "LDAP session failed" if we actually triedArthur de Jong2010-05-101-20/+12
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1099 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace my_pam_warn() with pam_info() and pam_error() ↵Arthur de Jong2010-05-101-45/+12
| | | | | | and provide replacement for pam_prompt() also using it in our pam_get_authtok() replacement git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1098 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a minimum_uid option for the PAM module to ↵Arthur de Jong2010-05-061-9/+51
| | | | | | ignore users that have a lower numeric user id git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1082 ef36b2f9-881f-0410-afb5-c4e39611909c
* add admindn configuration file option that is used when ↵Arthur de Jong2010-01-241-6/+24
| | | | | | modifying another user's password git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1059 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide a replacement for the pam_get_authtok() ↵Arthur de Jong2009-10-172-2/+5
| | | | | | functions for systems without it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1008 ef36b2f9-881f-0410-afb5-c4e39611909c
* only include security/pam_ext.h for systems that have itArthur de Jong2009-10-111-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1004 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement password changing in the PAM module by ↵Arthur de Jong2009-10-071-84/+85
| | | | | | performing an LDAP password modify EXOP request git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1000 ef36b2f9-881f-0410-afb5-c4e39611909c
* some compatibility improvementsArthur de Jong2009-10-051-1/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@998 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix return of authorisation check (patch by Howard Chu ↵Arthur de Jong2009-09-291-0/+1
| | | | | | <hyc@symas.com>) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@997 ef36b2f9-881f-0410-afb5-c4e39611909c
* general code cleanup and add missing casts and includesArthur de Jong2009-09-241-40/+43
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@993 ef36b2f9-881f-0410-afb5-c4e39611909c
* change authorisation request to also include ruser, ↵Arthur de Jong2009-06-031-4/+20
| | | | | | rhost and tty (based on OpenLDAP cvs) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@916 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove trailing spacesArthur de Jong2009-06-031-14/+14
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@915 ef36b2f9-881f-0410-afb5-c4e39611909c
* partially refactor to follow local coding convention and ↵Arthur de Jong2009-05-262-297/+317
| | | | | | introduce READ_PAM_CODE macro git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@896 ef36b2f9-881f-0410-afb5-c4e39611909c
* tabs to spacesArthur de Jong2009-05-211-543/+543
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@889 ef36b2f9-881f-0410-afb5-c4e39611909c
* make request-response functions simplerArthur de Jong2009-05-212-80/+42
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@888 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor protocol reading and writing macros to the ↵Arthur de Jong2009-05-213-71/+155
| | | | | | common directory, use more logical names and in the PAM module no longer use NSS status codes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@887 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge r885 from trunkArthur de Jong2009-05-161-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@886 ef36b2f9-881f-0410-afb5-c4e39611909c
* add warnings about protocol stabilityArthur de Jong2009-05-091-1/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@874 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge in changes from OpenLDAP tree (1.9)Arthur de Jong2009-05-071-80/+82
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@862 ef36b2f9-881f-0410-afb5-c4e39611909c
* always read returned username in tmpluser, always send ↵Arthur de Jong2009-04-201-21/+31
| | | | | | the username from PAM, also handle user renames in authentication and some minor cleanups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@842 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge in changes from OpenLDAP tree (1.6)Arthur de Jong2009-04-201-15/+46
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@841 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix static linkingArthur de Jong2009-04-191-2/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@840 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge in changes from OpenLDAP tree (1.5)Arthur de Jong2009-04-191-6/+20
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@835 ef36b2f9-881f-0410-afb5-c4e39611909c
* initial version of experimental PAM support taken from ↵Arthur de Jong2009-04-183-0/+711
OpenLDAP/contrib/slapd-modules/nssov by Howard Chu <hyc@symas.com> (license change of nssov/pam.c to nslcd/pam.c is approved) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@832 ef36b2f9-881f-0410-afb5-c4e39611909c