Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
* revert myldap changes in revisions 443 and 444Arthur de Jong2007-10-264-621/+98
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd-0.4.1@457 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix rpc filter and remove unused objectClass attmap entryArthur de Jong2007-10-251-2/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@455 ef36b2f9-881f-0410-afb5-c4e39611909c
* clean up any messages after abandoning the search ↵Arthur de Jong2007-10-251-6/+6
| | | | | | because that returns a new message (fix memory leak) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@454 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a memory leak, not storing search entries so they ↵Arthur de Jong2007-10-251-1/+2
| | | | | | could be freed later on git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@453 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix using unassigned statusArthur de Jong2007-10-251-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@452 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix memory leakArthur de Jong2007-10-251-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@451 ef36b2f9-881f-0410-afb5-c4e39611909c
* call mysnprintf() instead of snprintf() where needed ↵Arthur de Jong2007-10-202-8/+8
| | | | | | (bugfix) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@448 ef36b2f9-881f-0410-afb5-c4e39611909c
* make a replacement for _nss_ldap_getbyname() which uses ↵Arthur de Jong2007-10-201-72/+22
| | | | | | the myldap calls internally git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@444 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate basic myldap interface (partially merged from ↵Arthur de Jong2007-10-194-28/+600
| | | | | | dev-myldap branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@443 ef36b2f9-881f-0410-afb5-c4e39611909c
* 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