Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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
* add note about freed valuesArthur de Jong2008-04-171-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@676 ef36b2f9-881f-0410-afb5-c4e39611909c
* change dict_values_first() and dict_values_next() into ↵Arthur de Jong2008-04-174-31/+36
| | | | | | 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
* remote hopefully last reference to rootbind{dn,pw}Arthur de Jong2008-04-131-4/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@674 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
* get files ready for 0.6.1 release0.6.1Arthur de Jong2008-04-067-11/+345
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@670 ef36b2f9-881f-0410-afb5-c4e39611909c
* include updated filesArthur de Jong2008-04-062-17/+59
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@669 ef36b2f9-881f-0410-afb5-c4e39611909c
* include Petter Reinholdtsen for reporting many bugs and ↵Arthur de Jong2008-04-051-0/+1
| | | | | | even some fixes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@668 ef36b2f9-881f-0410-afb5-c4e39611909c
* handle case where value contains spaces properlyArthur de Jong2008-04-051-13/+20
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@667 ef36b2f9-881f-0410-afb5-c4e39611909c
* support having a binddn set without a bindpwArthur de Jong2008-04-051-1/+11
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@666 ef36b2f9-881f-0410-afb5-c4e39611909c