Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
* 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
* trip trailing whitespaceArthur de Jong2006-11-252-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@117 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix problem with allocated array for storing addresses, ↵Arthur de Jong2006-11-241-17/+23
| | | | | | properly set h_errnop and check empty address (only addresses of other address family) in nss functions, not in read_hostent() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@114 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement netgroup lookups, including test codeArthur de Jong2006-11-211-16/+43
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@108 ef36b2f9-881f-0410-afb5-c4e39611909c
* write contents of ethernet address not pointerArthur de Jong2006-11-191-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@104 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix bug: the readfn() function was executed twiceArthur de Jong2006-11-191-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@100 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement netgroup lookupsArthur de Jong2006-11-173-6/+121
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@97 ef36b2f9-881f-0410-afb5-c4e39611909c
* do some refactoring in the generated code and add some ↵Arthur de Jong2006-11-1712-80/+124
| | | | | | documentation on generated code in comments in common.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@96 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement reading of services entitiesArthur de Jong2006-11-162-1/+83
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@95 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement reading of rpc entitiesArthur de Jong2006-11-162-1/+81
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@94 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement reading of protocol entitiesArthur de Jong2006-11-162-1/+81
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@93 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to a simpler and more compact framework to ↵Arthur de Jong2006-11-168-144/+105
| | | | | | generate methods (one reader function to deserialize a struct from the stream and auto-generated functions) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@92 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement network information lookups through NSSArthur de Jong2006-11-153-4/+192
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@91 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly filter out empty returned address records and ↵Arthur de Jong2006-11-151-9/+33
| | | | | | return NOTFOUND for entries without addresses in our address family git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@90 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement automounter maps lookupsArthur de Jong2006-11-143-4/+158
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@88 ef36b2f9-881f-0410-afb5-c4e39611909c
* just close the stream in case of problems instead of ↵Arthur de Jong2006-11-141-1/+1
| | | | | | calling endent() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@87 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename nss/exports.h to nss/prototypes.hArthur de Jong2006-11-108-8/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@82 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to using prototypes that are defined in glibc 2.3.6Arthur de Jong2006-11-105-19/+19
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@81 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement NSS-side shadow lookups (plus test code)Arthur de Jong2006-11-102-1/+85
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@80 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement NSS-side ethers database lookups plus test codeArthur de Jong2006-11-103-5/+129
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@79 ef36b2f9-881f-0410-afb5-c4e39611909c
* add test code for host database and add const to ↵Arthur de Jong2006-11-102-2/+2
| | | | | | function definition git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@78 ef36b2f9-881f-0410-afb5-c4e39611909c
* use better names for our thread-local file pointerArthur de Jong2006-11-103-6/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@77 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement initial host database lookups NSS-sideArthur de Jong2006-11-032-1/+211
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@69 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix bogus reuse of tmpint32, introducing tmp3int32Arthur de Jong2006-11-031-5/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@66 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename LOOP to STRINGLIST as that is currently the only ↵Arthur de Jong2006-11-032-12/+12
| | | | | | supported format git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@64 ef36b2f9-881f-0410-afb5-c4e39611909c
* add _nss_ldap_initgroups_dyn() functionArthur de Jong2006-11-031-3/+54
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@63 ef36b2f9-881f-0410-afb5-c4e39611909c