Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/group.c
Commit message (Collapse)AuthorAgeFilesLines
...
* do not pass useless errnos around because they aren't ↵Arthur de Jong2007-09-151-17/+10
| | | | | | used anymore git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@404 ef36b2f9-881f-0410-afb5-c4e39611909c
* minor code improvementsArthur de Jong2007-09-151-12/+14
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@401 ef36b2f9-881f-0410-afb5-c4e39611909c
* move the two remaining useful functions from util.c to ↵Arthur de Jong2007-09-151-1/+0
| | | | | | ldap-nss.c git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@400 ef36b2f9-881f-0410-afb5-c4e39611909c
* move _nss_ldap_dn2uid() from util.c to group.cArthur de Jong2007-09-141-0/+39
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@399 ef36b2f9-881f-0410-afb5-c4e39611909c
* move user2dn() from group.c to passwd_username2dn() in ↵Arthur de Jong2007-09-141-20/+1
| | | | | | passwd.c git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@397 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not flush streams: our caller closes the streams ↵Arthur de Jong2007-09-141-4/+0
| | | | | | flusing them git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@396 ef36b2f9-881f-0410-afb5-c4e39611909c
* make use of write_*ent() functions consistentArthur de Jong2007-09-141-19/+25
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@395 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some more references to the old locked functionsArthur de Jong2007-09-141-7/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@393 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove mutex from all LDAP operations because we now ↵Arthur de Jong2007-09-141-8/+3
| | | | | | have a session and a connection per thread git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@392 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of global session and instead pass the session ↵Arthur de Jong2007-09-141-87/+67
| | | | | | as a parameter with every request and allocate a session per thread git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@391 ef36b2f9-881f-0410-afb5-c4e39611909c
* change naming of search functions to clearly indicate ↵Arthur de Jong2007-09-091-2/+2
| | | | | | whether the synchronous or the asynchronous interface is used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@389 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename a function and a little bit of cleanupArthur de Jong2007-09-081-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@386 ef36b2f9-881f-0410-afb5-c4e39611909c
* move base and scope handling to database specific ↵Arthur de Jong2007-09-081-16/+26
| | | | | | modules, gettting rid of ldap_service_search_descriptor git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@384 ef36b2f9-881f-0410-afb5-c4e39611909c
* move filters definitions to the database modules ↵Arthur de Jong2007-09-081-23/+35
| | | | | | themselves (and already define base and scope but don't use them yet) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@383 ef36b2f9-881f-0410-afb5-c4e39611909c
* make handling of ent_context consistent and simplerArthur de Jong2007-09-071-36/+17
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@382 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove last usage of struct ldap_args and add FIXMEArthur de Jong2007-09-071-5/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@379 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove the ldap-schema.[ch] files since this is now ↵Arthur de Jong2007-09-071-1/+0
| | | | | | fully implemented in the database specific files git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@378 ef36b2f9-881f-0410-afb5-c4e39611909c
* also pass search filter for the *_all() functions from ↵Arthur de Jong2007-09-071-68/+52
| | | | | | the database module instead of doing it in ldap-nss.c git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@377 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename attlst stuff to attrs since that is the name of ↵Arthur de Jong2007-09-071-14/+14
| | | | | | the parameter that is passed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@376 ef36b2f9-881f-0410-afb5-c4e39611909c
* move some of the filter code to the database specific ↵Arthur de Jong2007-09-071-124/+163
| | | | | | modules to be able to reduce complexity of ldap-nss.c later on git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@375 ef36b2f9-881f-0410-afb5-c4e39611909c
* include service name in attlst storage and functionsArthur de Jong2007-09-031-14/+14
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@373 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove nss_initgroups and nss_initgroups_ignoreusers ↵Arthur de Jong2007-08-031-63/+24
| | | | | | configfile options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@342 ef36b2f9-881f-0410-afb5-c4e39611909c
* define the list of attributes to look up in searches in ↵Arthur de Jong2007-07-281-11/+22
| | | | | | the service modules instead of in ldap-schema git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@337 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to the new attribute mapping codeArthur de Jong2007-07-261-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@331 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to a new interface for doing attribute mapping, ↵Arthur de Jong2007-07-241-14/+15
| | | | | | splitting the attribute mapping stuff into a separate file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@326 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement our own stdio-like library that handles IO ↵Arthur de Jong2007-06-091-5/+5
| | | | | | 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-2/+7
| | | | | | 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
* move most config code into cfg.c, clean up dictornary ↵Arthur de Jong2007-01-171-0/+15
| | | | | | stuff in util.c and do some more smaller restructuring git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@223 ef36b2f9-881f-0410-afb5-c4e39611909c
* move name_list stuff to group.c as that is the only ↵Arthur de Jong2007-01-171-4/+90
| | | | | | place it's used at the moment git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@222 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
* get rid of debug() function and call log_log() insteadArthur de Jong2006-12-291-6/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@205 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not allocate new memory with malloc() for each ↵Arthur de Jong2006-12-271-11/+4
| | | | | | request with a string parameter but use a buffer allocated on the stack instead (this simplifies free()-ing the buffer(s) in case of problems) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@204 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of NSS_BUFSIZ, rename _nss_ldap_oc_check() to ↵Arthur de Jong2006-12-251-2/+2
| | | | | | has_objectclass(), redo _nss_ldap_escape_string() with simpler logic and slightly different signature and redid layout of some code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@203 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename server directory to nslcdArthur de Jong2006-12-211-0/+1231
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@196 ef36b2f9-881f-0410-afb5-c4e39611909c