Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
* 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
* rename symbol map files and check for the linker option ↵Arthur de Jong2010-06-152-3/+5
| | | | | | to specify the file with git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1143 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a global symbol inside the NSS module to allow ↵Arthur de Jong2010-06-146-4/+43
| | | | | | applications to disable NSS lookups over LDAP and use it in nslcd to avoid deadlocks git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1141 ef36b2f9-881f-0410-afb5-c4e39611909c
* make include guard names consistent throughout the ↵Arthur de Jong2010-06-142-6/+6
| | | | | | 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
* remove some unused include statementsArthur de Jong2010-06-1411-11/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1139 ef36b2f9-881f-0410-afb5-c4e39611909c
* simple improvement for FreeBSDArthur de Jong2010-01-231-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1054 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix missing argument (problem in r1039)Arthur de Jong2009-12-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1040 ef36b2f9-881f-0410-afb5-c4e39611909c
* Glibc changed the addr parameter of getnetbyaddr_r() ↵Arthur de Jong2009-12-281-5/+7
| | | | | | from network-byte-order to host-byte-order git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1039 ef36b2f9-881f-0410-afb5-c4e39611909c
* also use compat/ether.h for nss functionsArthur de Jong2009-12-211-4/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1032 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't pass an empty parameter to a macroArthur de Jong2009-10-081-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1002 ef36b2f9-881f-0410-afb5-c4e39611909c
* re-organise configure script and only run tests for ↵Arthur de Jong2009-10-081-1/+1
| | | | | | parts that are enabled git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1001 ef36b2f9-881f-0410-afb5-c4e39611909c
* some simple changes in includes to make FreeBSD diff smallerArthur de Jong2009-09-041-0/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@986 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge r934 from trunkArthur de Jong2009-06-061-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@935 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor protocol reading and writing macros to the ↵Arthur de Jong2009-05-2114-196/+50
| | | | | | 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-5/+12
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@886 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge r882 from trunkArthur de Jong2009-05-092-7/+33
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@883 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge r865 from trunkArthur de Jong2009-05-081-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@866 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge r834 from trunkArthur de Jong2009-04-192-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@836 ef36b2f9-881f-0410-afb5-c4e39611909c
* increase write buffer size in nslcd to free up threads ↵Arthur de Jong2008-06-061-2/+8
| | | | | | earlier and increase timeout for nslcd to nss communication to one minute (at both places) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@743 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove comment about limitation that has now been removedArthur de Jong2008-05-161-4/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@737 ef36b2f9-881f-0410-afb5-c4e39611909c
* grow the read buffer maximum size to 2Mbyte to allow for ↵Arthur de Jong2008-05-161-1/+1
| | | | | | groups with about 150000 members maximum git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@736 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove checking for first entry and always return ↵Arthur de Jong2008-05-022-14/+7
| | | | | | NSS_STATUS_RETURN when no more data is available in the netgroup (this has the side effect of not returning NSS_STATUS_NOTFOUND for non-existing netgroups but seems to be what other NSS modules do) to properly handle empty netgroups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@720 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix comment of return value of NSS_STATUS_TRYAGAINArthur de Jong2008-05-011-4/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@714 ef36b2f9-881f-0410-afb5-c4e39611909c
* increase time out values because now nslcd will error ↵Arthur de Jong2008-04-261-3/+3
| | | | | | out more quickly if the LDAP server is known to be unavailable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@708 ef36b2f9-881f-0410-afb5-c4e39611909c
* correctly implement buffer handling in ↵Arthur de Jong2008-04-051-21/+39
| | | | | | _nss_ldap_initgroups_dyn() to grow buffer when needed, check limits and handle extra group parameter (had a closer look at nis-initgroups.c) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@660 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly check the limit (as seen in nis-initgroups.c)Arthur de Jong2008-04-051-1/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@658 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement resizable I/O buffers and tune buffer sizes to ↵Arthur de Jong2008-02-121-1/+9
| | | | | | normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not set errno (and h_errno) if we got the last entry ↵Arthur de Jong2008-02-014-24/+1
| | | | | | from get*ent() (this apparently is needed by coreutils' id and groups commands) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@601 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove the nslcd2nss() function because it's not needed ↵Arthur de Jong2008-02-016-21/+5
| | | | | | with the current protocol git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@597 ef36b2f9-881f-0410-afb5-c4e39611909c
* fail with a permanent error if resetting the stream ↵Arthur de Jong2008-02-011-0/+3
| | | | | | failed to prevent indefinite retries git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@596 ef36b2f9-881f-0410-afb5-c4e39611909c
* use uint8_t instead of u_int8_t because the former seems ↵Arthur de Jong2008-01-301-2/+2
| | | | | | to be available on more platforms git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@583 ef36b2f9-881f-0410-afb5-c4e39611909c
* when including stdint.h check if we actually have itArthur de Jong2008-01-271-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
* only start the NSLCD_ACTION_*_ALL requests with the ↵Arthur de Jong2008-01-0312-56/+51
| | | | | | first call to getent() instead of with setent() to avoid unneeded requests if compat is used (except with netgroups) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@556 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright yearArthur de Jong2008-01-031-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@555 ef36b2f9-881f-0410-afb5-c4e39611909c
* increment value that is pointed to, not the pointer ↵Arthur de Jong2008-01-031-1/+1
| | | | | | (fixes segfault) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@552 ef36b2f9-881f-0410-afb5-c4e39611909c
* enable the _nss_ldap_initgroups_dyn() function that is ↵Arthur de Jong2008-01-013-8/+2
| | | | | | now implemented in nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@549 ef36b2f9-881f-0410-afb5-c4e39611909c
* use the new tio_mark()/tio_reset() functions to support ↵Arthur de Jong2008-01-011-7/+16
| | | | | | retries of the getent() functions when NSS_STATUS_TRYAGAIN would be returned git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@548 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove NSLCD_RESULT_UNAVAIL because it's not needed ↵Arthur de Jong2007-12-252-3/+2
| | | | | | anymore (the connection is broken when an error occurs) and rename NSLCD_RESULT_NOTFOUND into NSLCD_RESULT_END to better match its meaning git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@530 ef36b2f9-881f-0410-afb5-c4e39611909c
* correct calls to NSLCD_ACTION_NETWORK_BYNAME and ↵Arthur de Jong2007-10-211-3/+3
| | | | | | NSLCD_ACTION_NETWORK_BYADDR and get address in correct byte order with the last call git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@449 ef36b2f9-881f-0410-afb5-c4e39611909c
* some small improvements to the code based on some source ↵Arthur de Jong2007-09-231-1/+4
| | | | | | code checks git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@418 ef36b2f9-881f-0410-afb5-c4e39611909c
* flag the address family parameter as unusedArthur de Jong2007-07-131-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@300 ef36b2f9-881f-0410-afb5-c4e39611909c
* add proper support for make uninstallArthur de Jong2007-06-171-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@292 ef36b2f9-881f-0410-afb5-c4e39611909c
* support building outside the source directoryArthur de Jong2007-06-171-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@289 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement our own stdio-like library that handles IO ↵Arthur de Jong2007-06-0914-49/+57
| | | | | | with a simple configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c
* code improvements by making type casts explicit, ↵Arthur de Jong2007-03-048-34/+34
| | | | | | flagging ignored return values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a few bugs found thanks to the new warningsArthur de Jong2007-02-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@251 ef36b2f9-881f-0410-afb5-c4e39611909c
* add gcc attributes to some functions and parametersArthur de Jong2007-02-1712-12/+28
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c