Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/group.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* remove the nslcd2nss() function because it's not needed ↵Arthur de Jong2008-02-011-1/+1
| | | | | | with the current protocol git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@597 ef36b2f9-881f-0410-afb5-c4e39611909c
* only start the NSLCD_ACTION_*_ALL requests with the ↵Arthur de Jong2008-01-031-2/+3
| | | | | | 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
* 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-011-5/+1
| | | | | | now implemented in nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@549 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove NSLCD_RESULT_UNAVAIL because it's not needed ↵Arthur de Jong2007-12-251-1/+1
| | | | | | 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
* implement our own stdio-like library that handles IO ↵Arthur de Jong2007-06-091-3/+3
| | | | | | 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-041-3/+3
| | | | | | 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
* add gcc attributes to some functions and parametersArthur de Jong2007-02-171-1/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that all NSS functions can be generated by the ↵Arthur de Jong2007-01-171-53/+51
| | | | | | 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
* change license from GNU Library General Public License ↵Arthur de Jong2007-01-091-7/+7
| | | | | | 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
* remove _nss_ldap_initgroups_dyn() from interface for now ↵Arthur de Jong2006-12-161-0/+2
| | | | | | because it is currently not working git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@162 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename LDF_ marcos to NSLCD_ macros to have a single ↵Arthur de Jong2006-11-281-5/+5
| | | | | | namespace git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@134 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of nslcd-client.{c,h} and move it to ↵Arthur de Jong2006-11-271-1/+0
| | | | | | 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
* do some refactoring in the generated code and add some ↵Arthur de Jong2006-11-171-5/+4
| | | | | | 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
* switch to a simpler and more compact framework to ↵Arthur de Jong2006-11-161-30/+13
| | | | | | 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
* rename nss/exports.h to nss/prototypes.hArthur de Jong2006-11-101-1/+1
| | | | 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-101-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@81 ef36b2f9-881f-0410-afb5-c4e39611909c
* use better names for our thread-local file pointerArthur de Jong2006-11-101-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@77 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-031-8/+8
| | | | | | 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
* make loop macros common, create macros for expanding ↵Arthur de Jong2006-11-031-50/+12
| | | | | | {set,get,end}ent() functions and implement {set,get,end}aliasent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@62 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename READ_RESPONSE() macro to READ_RESPONSE_CODE()Arthur de Jong2006-11-021-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@54 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement NSS side of getgrnam(), getgrgid() and ↵Arthur de Jong2006-11-011-0/+145
{set,get,end}grent() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@53 ef36b2f9-881f-0410-afb5-c4e39611909c