Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* get files ready for 0.6.2 release0.6.2Arthur de Jong2008-05-047-13/+380
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@728 ef36b2f9-881f-0410-afb5-c4e39611909c
* some documentation cleanups and updatesArthur de Jong2008-05-042-21/+30
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@727 ef36b2f9-881f-0410-afb5-c4e39611909c
* add some tests for isvalidgroupname()Arthur de Jong2008-05-041-0/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@726 ef36b2f9-881f-0410-afb5-c4e39611909c
* make number of threads configurable with the threads keywordArthur de Jong2008-05-044-6/+39
| | | | 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
* add soft dependency on slapd, simplify network and file ↵Arthur de Jong2008-05-031-4/+4
| | | | | | system dependencies and add reverse dependencies on some common daemons that may want to do NSS lookups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@721 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove checking for first entry and always return ↵Arthur de Jong2008-05-022-14/+7
| | | | | | NSS_STATUS_RETURN when no more data is available in the netgroup (this has the side effect of not returning NSS_STATUS_NOTFOUND for non-existing netgroups but seems to be what other NSS modules do) to properly handle empty netgroups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@720 ef36b2f9-881f-0410-afb5-c4e39611909c
* add file for testing nslcd/group.cArthur de Jong2008-05-022-1/+138
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@719 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't even compile the test programs on make checkArthur de Jong2008-05-021-2/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@718 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't compile test code on every build and fix LDADD ↵Arthur de Jong2008-05-021-9/+8
| | | | | | lists to include correct objects git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@717 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
* fix comment of return value of NSS_STATUS_TRYAGAINArthur de Jong2008-05-011-4/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@714 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a warningArthur de Jong2008-05-011-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@713 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that filter_get_var() and filter_get_var() return ↵Arthur de Jong2008-05-011-6/+8
| | | | | | non-NULL to enable parsing of config file with attribute mapping and filter settings and use base from config file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@712 ef36b2f9-881f-0410-afb5-c4e39611909c
* make language about pagesize option a little clearerArthur de Jong2008-04-291-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@711 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
* increase time out values because now nslcd will error ↵Arthur de Jong2008-04-262-5/+5
| | | | | | out more quickly if the LDAP server is known to be unavailable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@708 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
* some spelling fixes and a clarification of the retry ↵Arthur de Jong2008-04-261-13/+13
| | | | | | mechanism git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@706 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
* fix quote in commentArthur de Jong2008-04-261-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@703 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-257-82/+111
| | | | | | 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
* include missing includeArthur de Jong2008-04-251-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@700 ef36b2f9-881f-0410-afb5-c4e39611909c
* ignore SIGPIPE in myldap testsArthur de Jong2008-04-251-0/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@699 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix assert to be test instead of assignmentArthur de Jong2008-04-251-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@698 ef36b2f9-881f-0410-afb5-c4e39611909c
* have the binary look up the file name and only use the ↵Arthur de Jong2008-04-252-3/+11
| | | | | | shell script wrapper to determine if LDAP server is available git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@697 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typos in references to HAVE_ETHER_NTOA_R and ↵Arthur de Jong2008-04-251-4/+4
| | | | | | HAVE_ETHER_ATON_R macros git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@696 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix order of members in group in tests because of new ↵Arthur de Jong2008-04-231-4/+4
| | | | | | hashing dict (maybe we should fix the script instead to always sort members properly) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@695 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix problem where first item in the hashtable could be ↵Arthur de Jong2008-04-231-1/+1
| | | | | | returned twice while looping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@694 ef36b2f9-881f-0410-afb5-c4e39611909c
* add test for problem with duplicate entries being ↵Arthur de Jong2008-04-231-0/+37
| | | | | | returned while looping over results git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@693 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
* allocate room for key string just after entry to save on ↵Arthur de Jong2008-04-211-72/+12
| | | | | | calls to malloc() and make it simpler git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@691 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
* only guess the searchbase if the value doesn't seem to ↵Arthur de Jong2008-04-191-2/+5
| | | | | | be preseeded (based on a patch by Petter Reinholdtsen <pere@hungry.com>) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@685 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix wrapping and indenting of commentsArthur de Jong2008-04-191-19/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@684 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
* implement a set that uses the dict module as back-endArthur de Jong2008-04-195-5/+204
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@681 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement new dict module that uses a hashtable which is ↵Arthur de Jong2008-04-191-92/+252
| | | | | | around 40 times faster for large (around 2000) entries but with around 40% more memory used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@680 ef36b2f9-881f-0410-afb5-c4e39611909c
* some new tests for the dictionary moduleArthur de Jong2008-04-193-10/+2594
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@679 ef36b2f9-881f-0410-afb5-c4e39611909c