Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
* make number of threads configurable with the threads keywordArthur de Jong2008-05-043-6/+21
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@725 ef36b2f9-881f-0410-afb5-c4e39611909c
* add reference to note about thread-safeness of OpenLDAPArthur de Jong2008-05-041-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@724 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix copyright yearArthur de Jong2008-05-041-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@723 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a cache for dn2uid() lookups that saves some ↵Arthur de Jong2008-05-031-24/+81
| | | | | | time doing LDAP searches for groups with a lot of members, based on a patch by Petter Reinholdtsen <pere@hungry.com> git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@722 ef36b2f9-881f-0410-afb5-c4e39611909c
* only support tls-related options if LDAP library ↵Arthur de Jong2008-05-023-2/+19
| | | | | | supports TLS, only add rebind code if ldap_set_rebind_proc() is found and only set LDAP_X_OPT_CONNECT_TIMEOUT if that option is supported git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@716 ef36b2f9-881f-0410-afb5-c4e39611909c
* support ranged attribute valuesArthur de Jong2008-05-011-1/+166
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@715 ef36b2f9-881f-0410-afb5-c4e39611909c
* support the case where an attribute mapping variable is NULLArthur de Jong2008-04-271-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@710 ef36b2f9-881f-0410-afb5-c4e39611909c
* also close the LDAP connection on LDAP_SERVER_DOWN ↵Arthur de Jong2008-04-261-4/+4
| | | | | | (besides LDAP_UNAVAILABLE) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@709 ef36b2f9-881f-0410-afb5-c4e39611909c
* spelling fix in commentArthur de Jong2008-04-261-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@707 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix log message of incorrect map statementArthur de Jong2008-04-261-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@705 ef36b2f9-881f-0410-afb5-c4e39611909c
* make log message a little more descriptiveArthur de Jong2008-04-261-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@704 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that the connection to the LDAP server is closed ↵Arthur de Jong2008-04-261-0/+15
| | | | | | whenever any of the ldap_*() functions return LDAP_UNAVAILABLE git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@702 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement new timing mechanism for retries to quickly ↵Arthur de Jong2008-04-253-42/+86
| | | | | | fail lookups to LDAP server that have been failing for some time, removing the reconnect_tries option and giving reconnect_sleeptime and reconnect_maxsleeptime options a new meaning git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@701 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't issue warning when myldap_get_entry() returns NULL ↵Arthur de Jong2008-04-231-1/+2
| | | | | | and LDAP_SUCCESS git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@692 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix tests for valid user and group namesArthur de Jong2008-04-202-10/+10
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@690 ef36b2f9-881f-0410-afb5-c4e39611909c
* add checks for valid user and group names in incoming ↵Arthur de Jong2008-04-203-30/+155
| | | | | | requests and for data returned from LDAP git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@689 ef36b2f9-881f-0410-afb5-c4e39611909c
* only support uniqueMember containing DN valuesArthur de Jong2008-04-201-14/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@688 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix warning message to not refer to aliasArthur de Jong2008-04-201-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@687 ef36b2f9-881f-0410-afb5-c4e39611909c
* make warning message more verbose, fix comment and don't ↵Arthur de Jong2008-04-201-2/+5
| | | | | | try to store empty results git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@686 ef36b2f9-881f-0410-afb5-c4e39611909c
* correctly call set_free() instead of free()Arthur de Jong2008-04-191-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@683 ef36b2f9-881f-0410-afb5-c4e39611909c
* use the new set data structure to gather the group membersArthur de Jong2008-04-191-59/+21
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@682 ef36b2f9-881f-0410-afb5-c4e39611909c
* add test for emtpy DNArthur de Jong2008-04-191-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@678 ef36b2f9-881f-0410-afb5-c4e39611909c
* instead of using the dict module to build a cache just ↵Arthur de Jong2008-04-181-28/+37
| | | | | | store the values in an fixed-sized array because no more than 9 attributes are currently retrieved from an entry and we never retrieve the same value more than once (so the cache is useless) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@677 ef36b2f9-881f-0410-afb5-c4e39611909c
* change dict_values_first() and dict_values_next() into ↵Arthur de Jong2008-04-171-2/+2
| | | | | | dict_loop_first() and dict_loop_next() to have a looping mechanism over keys and values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
* return values of dn2uid() and uid2dn() should always be usedArthur de Jong2008-04-061-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@673 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly handle the case where dn2uid() couldn't do a ↵Arthur de Jong2008-04-061-2/+2
| | | | | | DN->uid lookup git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@672 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix member->group searches by also searching for DN in ↵Arthur de Jong2008-04-053-6/+56
| | | | | | uniqueMember attribute git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@663 ef36b2f9-881f-0410-afb5-c4e39611909c
* make log line a little bigger to properly log more ↵Arthur de Jong2008-04-051-1/+1
| | | | | | search filters git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@662 ef36b2f9-881f-0410-afb5-c4e39611909c
* only return shadow entries to root usersArthur de Jong2008-04-051-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@661 ef36b2f9-881f-0410-afb5-c4e39611909c
* partial support for reading AD date format for ↵Arthur de Jong2008-04-051-12/+48
| | | | | | pwdLastSet attribute git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@657 ef36b2f9-881f-0410-afb5-c4e39611909c
* split closing of LDAP session to separate funtion to ↵Arthur de Jong2008-04-051-50/+46
| | | | | | invalidate running searches always and closes connection if setting up search failed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@656 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove code that handles special cases when calling as ↵Arthur de Jong2008-04-043-65/+10
| | | | | | root (removing rootbinddn, rootbindpw, rootuse_sasl and rootsasl_authid options) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@653 ef36b2f9-881f-0410-afb5-c4e39611909c
* revert r628 (using ldap_str2dn() instead of ↵Arthur de Jong2008-04-041-56/+98
| | | | | | ldap_explode_r?dn()) for now to make this compile on older versions of OpenLDAP git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@652 ef36b2f9-881f-0410-afb5-c4e39611909c
* only define and use do_sasl_interact() if we have a sasl ↵Arthur de Jong2008-03-301-4/+13
| | | | | | library git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@648 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't warn about problems retreiving the objectClass ↵Arthur de Jong2008-03-281-3/+0
| | | | | | from en entry git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@644 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a problem where the newly allocated storage by ↵Arthur de Jong2008-03-271-0/+1
| | | | | | realloc() wasn't used (thanks to Petter Reinholdtsen <pere@hungry.com> for the patch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@643 ef36b2f9-881f-0410-afb5-c4e39611909c
* add StartTLS support by Ralf Haferkamp <rhafer@suse.de>Arthur de Jong2008-02-151-0/+11
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@634 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass URI to do_bind() to make it work with do_rebind() ↵Arthur de Jong2008-02-151-12/+8
| | | | | | and use that URI (thanks Ralf Haferkamp <rhafer@suse.de>) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@633 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement resizable I/O buffers and tune buffer sizes to ↵Arthur de Jong2008-02-121-1/+9
| | | | | | normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace the calls to ldap_explode_dn() and ↵Arthur de Jong2008-02-101-98/+56
| | | | | | ldap_explode_rdn() with a call to ldap_str2dn() resulting in much simpler code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@628 ef36b2f9-881f-0410-afb5-c4e39611909c
* only support "dns" and "domain" values on platforms with ↵Arthur de Jong2008-02-081-0/+16
| | | | | | the necessary functions available git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@627 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't define struct ether_addr here, it was moved to ↵Arthur de Jong2008-02-081-6/+0
| | | | | | compat/ether.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@626 ef36b2f9-881f-0410-afb5-c4e39611909c
* make some changes to allow it to compile on more platformsArthur de Jong2008-02-041-3/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@625 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacements for ether_aton_r() and ↵Arthur de Jong2008-02-041-3/+1
| | | | | | ether_ntoa_r() for platforms that don't have them git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@624 ef36b2f9-881f-0410-afb5-c4e39611909c
* only call __nss_configure_lookup() if it is available, ↵Arthur de Jong2008-02-041-0/+5
| | | | | | if it isn't the platform is out of luck git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@623 ef36b2f9-881f-0410-afb5-c4e39611909c
* defined LDAP_SCOPE_DEFAULT it's not defined elsewhereArthur de Jong2008-02-041-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@622 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix missing castsArthur de Jong2008-02-041-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@621 ef36b2f9-881f-0410-afb5-c4e39611909c
* actually include the compat header files when neededArthur de Jong2008-02-041-0/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@620 ef36b2f9-881f-0410-afb5-c4e39611909c
* support the uniqueMember LDAP attribute that holds DN ↵Arthur de Jong2008-02-033-40/+144
| | | | | | values (they are translated with dn2uid() from passwd.c) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@615 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a dn2uid() function to transform a DN into a ↵Arthur de Jong2008-02-022-1/+46
| | | | | | username (looking inside the DN or doing an LDAP lookup if neede) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@610 ef36b2f9-881f-0410-afb5-c4e39611909c