Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
...
* put both tio_skip() and tio_close() within if (fixes ↵Arthur de Jong2012-03-161-1/+5
| | | | | | r1637) and clarify documentation of one part of the code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1638 ef36b2f9-881f-0410-afb5-c4e39611909c
* read any remaining available data from the stream when ↵Arthur de Jong2012-03-141-2/+4
| | | | | | closing the connection in a normal way to prevent Broken pipe messages in nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1637 ef36b2f9-881f-0410-afb5-c4e39611909c
* FreeBSD compilation fixes by Maxim VetrovArthur de Jong2012-01-171-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1597 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement group membership NSS function by Tom Judge ↵Arthur de Jong2011-10-121-4/+59
| | | | | | (taken from FreeBSD PR 154000) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1553 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unused variableArthur de Jong2011-08-141-4/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1505 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code improvementsArthur de Jong2011-03-192-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1400 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright headers to add missing yearsArthur de Jong2011-03-101-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
* add FreeBSD support, partially imported from the FreeBSD ↵Arthur de Jong2011-01-054-2/+188
| | | | | | port (thanks to Jacques Vidrine, Artem Kazakov and Alexander V. Chernikov) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1365 ef36b2f9-881f-0410-afb5-c4e39611909c
* put solnss.c under EXTRA_nss_ldap_so_SOURCESArthur de Jong2011-01-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1364 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that solnss.c ends up in tarballArthur de Jong2011-01-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1360 ef36b2f9-881f-0410-afb5-c4e39611909c
* correctly set nss_ldap_so_DEPENDENCIESArthur de Jong2010-12-301-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1353 ef36b2f9-881f-0410-afb5-c4e39611909c
* split netgroup backend into a "normal" backend and one ↵Arthur de Jong2010-12-301-93/+84
| | | | | | for setnetgrent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1352 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement buffer checking and simplify code somewhatArthur de Jong2010-12-302-28/+31
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1351 ef36b2f9-881f-0410-afb5-c4e39611909c
* move Solaris specific NSS functions to separate fileArthur de Jong2010-12-303-37/+53
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1350 ef36b2f9-881f-0410-afb5-c4e39611909c
* move LDAP_BE() definitionArthur de Jong2010-12-172-3/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1335 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove debugging left-oversArthur de Jong2010-12-161-3/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1334 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to a common back-end with a common constructor ↵Arthur de Jong2010-12-1610-188/+136
| | | | | | and destructor and put file pointer shared between {set,get,end}ent() calls in there git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1333 ef36b2f9-881f-0410-afb5-c4e39611909c
* have a more consistent naming convention for static ↵Arthur de Jong2010-12-1310-124/+124
| | | | | | lookup functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1331 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix assignment in if statement (was broken in r1262)Arthur de Jong2010-12-139-20/+20
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1330 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove redundant backslashArthur de Jong2010-10-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1289 ef36b2f9-881f-0410-afb5-c4e39611909c
* make formatting consistentArthur de Jong2010-10-151-12/+11
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1283 ef36b2f9-881f-0410-afb5-c4e39611909c
* also export _nss_ldap_enablelookups so we can disable ↵Arthur de Jong2010-10-151-2/+5
| | | | | | the NSS module from nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1282 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to using SETs to follow the netgroupsArthur de Jong2010-10-154-144/+23
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1281 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge changes from trunkArthur de Jong2010-10-141-1/+1
|\ | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1275 ef36b2f9-881f-0410-afb5-c4e39611909c
| * move _nss_ldap_initgroups_dyn() definition to the end to ↵Arthur de Jong2010-10-141-24/+24
| | | | | | | | | | | | have more logical order git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1272 ef36b2f9-881f-0410-afb5-c4e39611909c
| * link local modules before .a files from common directory ↵Arthur de Jong2010-10-131-1/+1
| | | | | | | | | | | | to pick symbols up in correct order git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1270 ef36b2f9-881f-0410-afb5-c4e39611909c
* | also try to support older Solaris releases that do not ↵Arthur de Jong2010-10-119-20/+123
| | | | | | | | | | | | have the returnlen member of struct nss_XbyY_args git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1262 ef36b2f9-881f-0410-afb5-c4e39611909c
* | generate Solaris NSS functions using same macros that ↵Arthur de Jong2010-10-1012-1432/+655
| | | | | | | | | | | | are used for Glibc, splitting functionality to make a string representation into a single function per NSS map git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1258 ef36b2f9-881f-0410-afb5-c4e39611909c
* | merge changes from trunkArthur de Jong2010-10-101-10/+10
|\| | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1257 ef36b2f9-881f-0410-afb5-c4e39611909c
| * make use of UNUSED() consistent throughout the codeArthur de Jong2010-10-101-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1256 ef36b2f9-881f-0410-afb5-c4e39611909c
| * correctly name shared file handleArthur de Jong2010-10-101-5/+5
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1255 ef36b2f9-881f-0410-afb5-c4e39611909c
| * put all logic on how to run linker for NSS and PAM ↵Arthur de Jong2010-10-103-6/+25
| | | | | | | | | | | | components in configure script (remove stuff from Makefile.ams) and add Solaris version script (renaming version scripts as needed) (r1250 from -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1253 ef36b2f9-881f-0410-afb5-c4e39611909c
| * correctly name shared file handleArthur de Jong2010-10-081-6/+5
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1245 ef36b2f9-881f-0410-afb5-c4e39611909c
* | put all locgic on how to link in configure script ↵Arthur de Jong2010-10-102-12/+1
| | | | | | | | | | | | (remove stuff from Makefile.ams) and make choice for NSS and PAM components independently (renaming and removing version scripts as needed) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1250 ef36b2f9-881f-0410-afb5-c4e39611909c
* | have one shared file handle per flavour instead of one ↵Arthur de Jong2010-10-099-38/+42
| | | | | | | | | | | | global one (for now) and re-introduce some other minor changes that got lost in r1247 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1249 ef36b2f9-881f-0410-afb5-c4e39611909c
* | re-introduce rename of protoentfp to serventfp which was ↵Arthur de Jong2010-10-091-9/+9
| | | | | | | | | | | | introduced in r1246 and accidentally lost in r1247 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1248 ef36b2f9-881f-0410-afb5-c4e39611909c
* | nss-pam-ldapd fixes for solaris 10 buildTed Cheng2010-10-099-53/+54
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1247 ef36b2f9-881f-0410-afb5-c4e39611909c
* | re-introduce {set,get,end}**ent() file handle in Solaris ↵Arthur de Jong2010-10-0810-14/+46
| | | | | | | | | | | | code path and some other miscellaneous small fixes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1246 ef36b2f9-881f-0410-afb5-c4e39611909c
* | merge changes from trunkArthur de Jong2010-10-0412-43/+105
|\| | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1242 ef36b2f9-881f-0410-afb5-c4e39611909c
| * improve consistency of code layoutArthur de Jong2010-10-0412-37/+132
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1240 ef36b2f9-881f-0410-afb5-c4e39611909c
| * merge some of the changes for Solaris portability to ↵Arthur de Jong2010-10-045-21/+24
| | | | | | | | | | | | 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
* | try to make use of UNUSED() consistentArthur de Jong2010-10-0410-77/+77
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1241 ef36b2f9-881f-0410-afb5-c4e39611909c
* | first attempt to split Solaris and Glibc code more and ↵Arthur de Jong2010-10-0315-887/+894
| | | | | | | | | | | | determine NSS flavour in configure script git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1236 ef36b2f9-881f-0410-afb5-c4e39611909c
* | import Solaris support developed by Ted C. Cheng of ↵Arthur de Jong2010-09-3016-43/+2247
|/ | | | | | Symas Corporation merged against SVN head (parts remain to be cleaned up) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1232 ef36b2f9-881f-0410-afb5-c4e39611909c
* have a way to limit which NSS maps should be builtArthur de Jong2010-09-251-5/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1215 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to using nss_status_t throughout the code and ↵Arthur de Jong2010-09-2413-125/+125
| | | | | | 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
* use htons() instead of ntohs() (thanks Ted C. Cheng)Arthur de Jong2010-07-271-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1167 ef36b2f9-881f-0410-afb5-c4e39611909c
* use -h linker flag instead of -soname which seems more ↵Arthur de Jong2010-07-181-1/+1
| | | | | | portable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1164 ef36b2f9-881f-0410-afb5-c4e39611909c
* allow configuring NSS module's SONAME from configure and ↵Arthur de Jong2010-07-071-7/+3
| | | | | | use this in nslcd to dlopen() the correct library (thanks to Alexander V. Chernikov for the idea) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1161 ef36b2f9-881f-0410-afb5-c4e39611909c
* have more compatibility code for NSS module and move ↵Arthur de Jong2010-06-172-61/+2
| | | | | | compatibility code to compat directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1146 ef36b2f9-881f-0410-afb5-c4e39611909c