Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/compat
Commit message (Collapse)AuthorAgeFilesLines
* Define NETDB_INTERNAL for musl libcArthur de Jong2023-08-061-0/+5
| | | | | | | | musl libc doesn't define ```NETDB_INTERNAL```. Add that definition when it's missing. Thanks Cristian Othón Martínez Vera. Closes https://github.com/arthurdejong/nss-pam-ldapd/pull/60
* Fix compilation issues on NetBSDBrett Lymn2023-06-171-6/+1
| | | | Fixes da63099
* Various spelling fixesArthur de Jong2019-09-176-12/+12
|
* Mark case blocks without break statementArthur de Jong2018-02-171-0/+7
| | | | | This avoids a gcc warning in non-empty case blocks without a break statement by explicitly marking those blocks.
* Fix HAVE_DECL_PAM_ERROR usageArthur de Jong2017-06-181-2/+2
| | | | | | | The macro is supposed to be defined to 0 (instead of undefined) if pam_info() and pam_error() are not found. Fixes 3d5ab89.
* Fix pam_info() and pam_error() replacementArthur de Jong2017-06-161-5/+5
| | | | | | On FreeBSD these are functions while on Linux they are macros causing them to be incorrectly replaced on FreeBSD. This resulted in a crash of the PAM module when e.g. presenting messages about password expiry.
* Query ethernet addresses in compact and long formatArthur de Jong2017-06-132-26/+2
| | | | | | | | | | | This ensures that when querying the address 0:18:8a:54:1a:8b both that format and 00:18:8a:54:1a:8b is searched for in LDAP. This was triggerred by the fact that ether_ntoa() on FreeBSD returns the long format while glibc uses the compact format. Since we are no longer using the libc version of ether_ntoa() we can also drop the compatibility implementation of ether_ntoa_r().
* Use correct PIC arg for non-GCC compilersTim Rice2015-03-231-1/+1
|
* Remove use of irs-nss.hArthur de Jong2015-03-221-3/+0
| | | | This was a compatibility leftover from the nss_ldap days.
* Provide replacement ldap_create_deref_control()Arthur de Jong2014-01-053-1/+63
| | | | | | This adds a test for a bug in OpenLDAP that allocated a LDAP_CONTROL_PAGEDRESULTS control instead of a LDAP_CONTROL_X_DEREF control.
* Remove daemon() replacement functionArthur de Jong2014-01-023-107/+1
|
* Add a test for pam_get_item() argument typeArthur de Jong2013-11-252-4/+4
| | | | | | This checks whether pam_get_item() takes a const void ** or void ** item value argument and defines a PAM_ITEM_CONST macro that is const when it should. This avoids some compiler warnings.
* Fix a number of compiler warningsArthur de Jong2013-10-291-1/+1
| | | | | This includes a number of small fixes for issues that were formerly masked by the incorrect AC_LANG_PROGRAM check.
* Compatibility definitions for {set,get,end}usershell()Arthur de Jong2013-10-292-0/+50
| | | | | This provides compatibility definitions for systems that don't have these functions (some Solaris flavours).
* Fix for common spelling mistakeArthur de Jong2013-08-282-2/+2
|
* also support systems without bet_get_enum()Arthur de Jong2013-03-101-0/+4
|
* provide a basic replacement implementation of ↵Arthur de Jong2013-03-033-1/+53
| | | | ldap_passwordpolicy_err2txt() for systems that don't have it
* provide a replacement implementation of ↵Arthur de Jong2013-03-033-1/+124
| | | | ldap_parse_passwordpolicy_control() for systems that don't have it
* request and parse password policy controls when doing ↵Arthur de Jong2013-03-031-1/+15
| | | | user authentication in nslcd
* fix copyright yearArthur de Jong2013-01-181-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1924 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove not needed defineArthur de Jong2013-01-051-4/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1897 ef36b2f9-881f-0410-afb5-c4e39611909c
* update C coding style to a more commonly used styleArthur de Jong2012-12-2219-232/+243
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 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