Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
* 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
* no longer install libc-versioned symlink and hardcode ↵Arthur de Jong2007-01-171-9/+4
| | | | | | nss soname because we will likely need to change our code if the ABI changes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@229 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that all NSS functions can be generated by the ↵Arthur de Jong2007-01-1712-359/+252
| | | | | | marcos in common.h and spell out the read_..() function for every type git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@227 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix netgroup lookups so that _nss_ldap_getnetgrent_r() ↵Arthur de Jong2007-01-102-1/+22
| | | | | | returns NSS_STATUS_RETURN if there are no more entries to return but there was a first entry git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@216 ef36b2f9-881f-0410-afb5-c4e39611909c
* change license from GNU Library General Public License ↵Arthur de Jong2007-01-0915-105/+105
| | | | | | v.2 to GNU Lesser General Public License v.2.1 with permission from Luke Howard git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@215 ef36b2f9-881f-0410-afb5-c4e39611909c
* use our own thread-local file pointer for doing requests ↵Arthur de Jong2007-01-082-14/+20
| | | | | | instead of misusing the data field in the __netgrent struct git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@214 ef36b2f9-881f-0410-afb5-c4e39611909c
* extract some more common macrosArthur de Jong2006-12-311-8/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@208 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly capitalize company nameArthur de Jong2006-12-201-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@191 ef36b2f9-881f-0410-afb5-c4e39611909c
* only set h_errno to error value on problems and change ↵Arthur de Jong2006-12-181-7/+23
| | | | | | the returned value in some cases git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@174 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove trailing spacesArthur de Jong2006-12-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@172 ef36b2f9-881f-0410-afb5-c4e39611909c
* add note about glibc manualArthur de Jong2006-12-171-0/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@171 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix comment as to installing librariesArthur de Jong2006-12-171-3/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@170 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove _nss_ldap_initgroups_dyn() from interface for now ↵Arthur de Jong2006-12-163-2/+5
| | | | | | because it is currently not working git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@162 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix indentationArthur de Jong2006-12-081-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@148 ef36b2f9-881f-0410-afb5-c4e39611909c
* clean up build scripts to only link nslcd to OpenSSL and ↵Arthur de Jong2006-12-051-9/+27
| | | | | | to cleanly create a nss_ldap.so file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@141 ef36b2f9-881f-0410-afb5-c4e39611909c
* regenerate from prototypes.hArthur de Jong2006-12-031-63/+83
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@136 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename LDF_ marcos to NSLCD_ macros to have a single ↵Arthur de Jong2006-11-288-36/+36
| | | | | | namespace git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@134 ef36b2f9-881f-0410-afb5-c4e39611909c
* get as many files from the root directory as possible, ↵Arthur de Jong2006-11-282-0/+71
| | | | | | moving all server related code to the server directory and moving and splitting the test code to the tests directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@131 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement network name lookups on server side plus some ↵Arthur de Jong2006-11-281-3/+6
| | | | | | fixes on the client side git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@130 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of nslcd-client.{c,h} and move it to ↵Arthur de Jong2006-11-2714-12/+77
| | | | | | nss/common.{c,h}, this ensures that all code that is needed for the nss part is in the nss directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@127 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of automount map information lookups through NSS ↵Arthur de Jong2006-11-263-179/+3
| | | | | | as this is not used (at least not with glibc), autofs-ldap looks up the information on it's own (but does parse /etc/nsswitch.conf) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@124 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement server end of service name lookup and fix ↵Arthur de Jong2006-11-251-3/+50
| | | | | | client end to translate between host and network byte order and to also pass protocol in request git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@123 ef36b2f9-881f-0410-afb5-c4e39611909c