Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/compat
Commit message (Collapse)AuthorAgeFilesLines
* remove not needed define (r1897 from 0.9)Arthur de Jong2013-05-051-4/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@1958 ef36b2f9-881f-0410-afb5-c4e39611909c
* include a missing castArthur de Jong2012-09-011-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1746 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide a compatibility version of struct spwd for ↵Arthur de Jong2012-05-111-1/+16
| | | | | | systems without it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1690 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix fallback definition of SUN_LEN() (fixes r1686)Arthur de Jong2012-05-111-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1688 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide a compatibility definition of SUN_LEN() for ↵Arthur de Jong2012-05-093-3/+37
| | | | | | systems that lack it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1686 ef36b2f9-881f-0410-afb5-c4e39611909c
* move all PAM_AUTHTOK_RECOVERY_ERR compatibility ↵Arthur de Jong2012-05-022-12/+4
| | | | | | definitions to compat/pam_compat.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1677 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide more detailed logging information for ↵Arthur de Jong2012-03-051-0/+8
| | | | | | ldap_start_tls_s() failures (based on a patch by Mel Flynn) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1626 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix headerArthur de Jong2011-07-031-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1480 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide PAM_AUTHTOK_RECOVERY_ERR for systems with only ↵Arthur de Jong2011-07-031-0/+8
| | | | | | PAM_AUTHTOK_RECOVER_ERR git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1479 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacement implementation for strndup() for ↵Arthur de Jong2011-04-153-1/+76
| | | | | | systems that don't have it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1427 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide a definition of daemon() for systems that lack itArthur de Jong2011-03-231-3/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1403 ef36b2f9-881f-0410-afb5-c4e39611909c
* typo fix in commentArthur de Jong2011-03-231-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1402 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright headers to add missing yearsArthur de Jong2011-03-104-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
* SASL compatibility definitionArthur de Jong2010-11-071-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1300 ef36b2f9-881f-0410-afb5-c4e39611909c
* small fixArthur de Jong2010-10-131-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1265 ef36b2f9-881f-0410-afb5-c4e39611909c
* move missing declarations of ether_ntoa() and ↵Arthur de Jong2010-10-102-15/+16
| | | | | | ether_aton() to header file so they are available for other sources also (r1243 from -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1252 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge some of the changes for Solaris portability to ↵Arthur de Jong2010-10-041-0/+3
| | | | | | ease merging, adding --with-pam-seclib-dir, --with-pam-ldap-soname and --with-nss-flavour options and having some auto-detection for SONAMEs and NSS flavour git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1239 ef36b2f9-881f-0410-afb5-c4e39611909c
* use AC_CHECK_DECLS to check for definitions of functions ↵Arthur de Jong2010-10-012-6/+8
| | | | | | we provide a replacement definition for git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1233 ef36b2f9-881f-0410-afb5-c4e39611909c
* only provide definitions for ether_aton() and ↵Arthur de Jong2010-09-291-0/+4
| | | | | | ether_ntoa() for platforms missing a definition git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1227 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix definitions of ether_aton() and ether_ntoa()Arthur de Jong2010-09-291-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1226 ef36b2f9-881f-0410-afb5-c4e39611909c
* begin merging some of the compatibility improvements ↵Arthur de Jong2010-09-282-0/+17
| | | | | | from Ted C. Cheng of Symas Corporation git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1225 ef36b2f9-881f-0410-afb5-c4e39611909c
* no need to provide a enum nss_status replacement because ↵Arthur de Jong2010-09-281-11/+0
| | | | | | we don't use it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1224 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to using nss_status_t throughout the code and ↵Arthur de Jong2010-09-241-0/+35
| | | | | | provide compatibility code to use whatever nss_status type is used on the system git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1214 ef36b2f9-881f-0410-afb5-c4e39611909c
* compatibility improvement: also check for nss_common.h ↵Arthur de Jong2010-07-181-0/+5
| | | | | | and see if enum nss_status exists git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1166 ef36b2f9-881f-0410-afb5-c4e39611909c
* define pam_info(), pam_error() and pam_syslog() ↵Arthur de Jong2010-07-181-6/+6
| | | | | | compatibility macros to allow no arguments for format git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1163 ef36b2f9-881f-0410-afb5-c4e39611909c
* have more compatibility code for NSS module and move ↵Arthur de Jong2010-06-172-0/+113
| | | | | | compatibility code to compat directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1146 ef36b2f9-881f-0410-afb5-c4e39611909c
* make include guard names consistent throughout the ↵Arthur de Jong2010-06-147-20/+20
| | | | | | 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
* add a warning to the limitation of our pam_get_authtok() ↵Arthur de Jong2010-06-021-0/+1
| | | | | | implementation git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1132 ef36b2f9-881f-0410-afb5-c4e39611909c
* perform logging from PAM module to syslog and support ↵Arthur de Jong2010-05-141-0/+9
| | | | | | 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
* small compatibility improvementsArthur de Jong2010-05-121-2/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1100 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace my_pam_warn() with pam_info() and pam_error() ↵Arthur de Jong2010-05-104-37/+92
| | | | | | 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-1/+12
| | | | | | 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 pointer to RFC 3062Arthur de Jong2010-02-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1063 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide a replacement for the pam_get_authtok() ↵Arthur de Jong2009-10-173-1/+166
| | | | | | functions for systems without it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1008 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacement functions for ldap_initialize() and ↵Arthur de Jong2009-10-176-49/+234
| | | | | | ldap_passwd_s() and centralise LDAP compatibility hacks into ldap_compat.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1007 ef36b2f9-881f-0410-afb5-c4e39611909c
* also provide some function definitions for ether_ntoa() ↵Arthur de Jong2009-10-171-1/+11
| | | | | | and ether_aton() because definitions seem to be missing on some platforms git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1006 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename software to nss-pam-ldapdArthur de Jong2009-08-314-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@978 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix for getpeercred() on Solaris by David Bartley ↵Arthur de Jong2009-01-301-5/+5
| | | | | | <dtbartle@csclub.uwaterloo.ca> git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@807 ef36b2f9-881f-0410-afb5-c4e39611909c
* use the cr_ prefix when getting a xucred struct (needed ↵Arthur de Jong2008-06-061-2/+2
| | | | | | for kfreebsd) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@753 ef36b2f9-881f-0410-afb5-c4e39611909c
* miscellaneous portability improvementsArthur de Jong2008-06-061-0/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typos in references to HAVE_ETHER_NTOA_R and ↵Arthur de Jong2008-04-251-4/+4
| | | | | | HAVE_ETHER_ATON_R macros git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@696 ef36b2f9-881f-0410-afb5-c4e39611909c
* make test for compiler versions simpler and per used ↵Arthur de Jong2008-03-301-17/+27
| | | | | | attribute git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@647 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacements for ether_aton_r() and ↵Arthur de Jong2008-02-043-1/+103
| | | | | | ether_ntoa_r() for platforms that don't have them git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@624 ef36b2f9-881f-0410-afb5-c4e39611909c
* only define MUST_USE attribute if gcc version is more ↵Arthur de Jong2008-01-311-8/+19
| | | | | | recent than 3.4 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@594 ef36b2f9-881f-0410-afb5-c4e39611909c
* move pagectrl code into compat directoryArthur de Jong2008-01-313-1/+264
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@592 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacement functions for daemon() and ↵Arthur de Jong2008-01-305-0/+248
| | | | | | getopt_long() when they are not available on the system git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@581 ef36b2f9-881f-0410-afb5-c4e39611909c
* define __STRING() if it's not defined by the systemArthur de Jong2008-01-301-0/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@579 ef36b2f9-881f-0410-afb5-c4e39611909c
* some fixes for LOCAL_PEERCRED (still untested)Arthur de Jong2008-01-301-6/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@577 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate some compatibility code into myldap.c, the ↵Arthur de Jong2008-01-271-32/+0
| | | | | | only place it's used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@575 ef36b2f9-881f-0410-afb5-c4e39611909c
* add (untested) support for the Solaris getpeerucred() ↵Arthur de Jong2008-01-262-2/+19
| | | | | | function git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@566 ef36b2f9-881f-0410-afb5-c4e39611909c