Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
* add warnings and errors to untested and unsupported ↵Arthur de Jong2007-09-281-2/+27
| | | | | | configfile options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@426 ef36b2f9-881f-0410-afb5-c4e39611909c
* some small improvements to the code based on some source ↵Arthur de Jong2007-09-232-2/+3
| | | | | | code checks git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@418 ef36b2f9-881f-0410-afb5-c4e39611909c
* add compat files to sources so they end up in the tarballArthur de Jong2007-09-221-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@416 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unneeded variables and slightly improve loggingArthur de Jong2007-09-211-10/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@412 ef36b2f9-881f-0410-afb5-c4e39611909c
* put config filename as a parameter to cfg_init()Arthur de Jong2007-09-193-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@410 ef36b2f9-881f-0410-afb5-c4e39611909c
* centralize opening of connection to LDAP server in ↵Arthur de Jong2007-09-151-232/+104
| | | | | | do_open() and refactor do_bind() to be simpler (making do_rebind() just one line) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@409 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove support for nested groups and use of uniqueMember ↵Arthur de Jong2007-09-159-1047/+25
| | | | | | and member attributes as well as memberOf attribute (this removes quite some functionality but helps us in refactoring because the code was one big exception to all the other modules) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@407 ef36b2f9-881f-0410-afb5-c4e39611909c
* some more code cleanup, changing return type of ↵Arthur de Jong2007-09-153-310/+197
| | | | | | _nss_ldap_init(), integrating _nss_ldap_init(), do_init_session(), do_parse_async() and _nss_ldap_search_async() into the functions that call them (each was only called once) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@406 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not pass useless errnos around because they aren't ↵Arthur de Jong2007-09-1513-105/+43
| | | | | | used anymore git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@404 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unused includeArthur de Jong2007-09-151-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@403 ef36b2f9-881f-0410-afb5-c4e39611909c
* some type fixes and logic simplificationsArthur de Jong2007-09-151-54/+45
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@402 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-1517-575/+218
| | | | | | 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-143-56/+39
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@399 ef36b2f9-881f-0410-afb5-c4e39611909c
* add note about free()ing the returned value and add loggingArthur de Jong2007-09-142-0/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@398 ef36b2f9-881f-0410-afb5-c4e39611909c
* move user2dn() from group.c to passwd_username2dn() in ↵Arthur de Jong2007-09-143-23/+20
| | | | | | 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-1410-29/+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-149-123/+164
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@395 ef36b2f9-881f-0410-afb5-c4e39611909c
* revert special casing for alias_byname() to other ↵Arthur de Jong2007-09-145-228/+28
| | | | | | functions and some logging strings simplifications git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@394 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-1413-195/+50
| | | | | | 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-1417-664/+558
| | | | | | 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
* some code cleanup and fixes to the layoutArthur de Jong2007-09-121-1191/+606
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@390 ef36b2f9-881f-0410-afb5-c4e39611909c
* change naming of search functions to clearly indicate ↵Arthur de Jong2007-09-094-12/+14
| | | | | | 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
* some simplifications in the reconnect loging, removing ↵Arthur de Jong2007-09-093-270/+150
| | | | | | the undocumented nss_reconnect_maxconntries configfile option and some work to split out LDAP compatibility code to a separate file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@388 ef36b2f9-881f-0410-afb5-c4e39611909c
* move nss2nslcd() to ldap-nss.cArthur de Jong2007-09-083-23/+15
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@387 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename a function and a little bit of cleanupArthur de Jong2007-09-083-25/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@386 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix endless loop bugArthur de Jong2007-09-081-6/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@385 ef36b2f9-881f-0410-afb5-c4e39611909c
* move base and scope handling to database specific ↵Arthur de Jong2007-09-0818-415/+418
| | | | | | 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-0817-364/+370
| | | | | | 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-0713-306/+184
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@382 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly initialize all contextsArthur de Jong2007-09-0710-10/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@381 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove struct ldap_args stuffArthur de Jong2007-09-071-55/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@380 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-0717-234/+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-0714-500/+233
| | | | | | 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-0711-132/+132
| | | | | | 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-0718-426/+653
| | | | | | 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-0311-132/+132
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@373 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove sigpipe handling code since sigpipe is ignored ↵Arthur de Jong2007-09-031-69/+2
| | | | | | throughout the program git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@372 ef36b2f9-881f-0410-afb5-c4e39611909c
* move enum ldap_map_selector and struct ↵Arthur de Jong2007-08-262-30/+30
| | | | | | ldap_service_search_descriptor from ldap-nss.h to cfg.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@364 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a couple of uses of per-map bases that could be NULL ↵Arthur de Jong2007-08-181-74/+28
| | | | | | and remove the ldap_proxy_bind_args that wasn't used anywhere git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@345 ef36b2f9-881f-0410-afb5-c4e39611909c
* rewrite configuration file handling to be simpler and ↵Arthur de Jong2007-08-187-787/+670
| | | | | | more consistent, this does mean that the syntax of the configfile has changed from the PADL one and that some options were removed (also update manual page and sample config file to reflect changes) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@343 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove nss_initgroups and nss_initgroups_ignoreusers ↵Arthur de Jong2007-08-033-152/+24
| | | | | | configfile options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@342 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove --enable-paged-results configure option and now ↵Arthur de Jong2007-08-034-67/+25
| | | | | | always do runtime configuration, remove nss_paged_results configfile option and use pagesize option to specify usage of paging or not git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@340 ef36b2f9-881f-0410-afb5-c4e39611909c
* define the list of attributes to look up in searches in ↵Arthur de Jong2007-07-2816-270/+211
| | | | | | 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
* fix typo in commentArthur de Jong2007-07-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@336 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some more old mapping stuff and change ↵Arthur de Jong2007-07-262-180/+23
| | | | | | configuration file keyword to map with the new syntax git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@332 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to the new attribute mapping codeArthur de Jong2007-07-2616-190/+160
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@331 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of default and override attribute value mappings ↵Arthur de Jong2007-07-265-426/+33
| | | | | | and remove host and port configuration options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@330 ef36b2f9-881f-0410-afb5-c4e39611909c