Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* refactor protocol reading and writing macros to the ↵Arthur de Jong2009-05-291-1/+1
| | | | | | common directory, use more logical names and in the PAM module no longer use NSS status codes (import of r887 from nss-pam-ldapd) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@904 ef36b2f9-881f-0410-afb5-c4e39611909c
* add missing objects to test programsArthur de Jong2009-05-291-0/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@903 ef36b2f9-881f-0410-afb5-c4e39611909c
* support multiple search bases, partially based on a ↵Arthur de Jong2009-05-242-12/+12
| | | | | | patch by Leigh Wedding <lwedding@bigpond.com> git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@892 ef36b2f9-881f-0410-afb5-c4e39611909c
* allow backslashes in names execpt as first or last characterArthur de Jong2008-12-031-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@804 ef36b2f9-881f-0410-afb5-c4e39611909c
* reflect change in test LDAP setupArthur de Jong2008-07-201-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@774 ef36b2f9-881f-0410-afb5-c4e39611909c
* add some very basic tests for the isvalidname() functionArthur de Jong2008-06-132-2/+56
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@760 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove test socket at end of testArthur de Jong2008-06-111-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@754 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a very basic test for getpeercred()Arthur de Jong2008-06-062-2/+147
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@752 ef36b2f9-881f-0410-afb5-c4e39611909c
* miscellaneous portability improvementsArthur de Jong2008-06-061-1/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 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
* 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
* 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
* implement new timing mechanism for retries to quickly ↵Arthur de Jong2008-04-253-21/+20
| | | | | | 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 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
* 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
* implement a set that uses the dict module as back-endArthur de Jong2008-04-192-3/+72
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@681 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
* change dict_values_first() and dict_values_next() into ↵Arthur de Jong2008-04-171-17/+16
| | | | | | 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
* no problem to shout a little with failed testsArthur de Jong2008-04-051-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@659 ef36b2f9-881f-0410-afb5-c4e39611909c
* use a larger buffer for group membership resultsArthur de Jong2008-04-051-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@655 ef36b2f9-881f-0410-afb5-c4e39611909c
* check that the last myldap_get_entry() returned successArthur de Jong2008-04-051-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@654 ef36b2f9-881f-0410-afb5-c4e39611909c
* add tests for myldap_get_rdn_value() and ↵Arthur de Jong2008-02-151-0/+36
| | | | | | myldap_cpy_rdn_value() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@632 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement resizable I/O buffers and tune buffer sizes to ↵Arthur de Jong2008-02-121-12/+24
| | | | | | normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
* add tests for new LDAP lookupsArthur de Jong2008-02-032-2/+49
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@616 ef36b2f9-881f-0410-afb5-c4e39611909c
* enable _nss_ldap_initgroups_dyn() test because it's ↵Arthur de Jong2008-02-011-6/+2
| | | | | | working now git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@603 ef36b2f9-881f-0410-afb5-c4e39611909c
* pagectrl module has movedArthur de Jong2008-02-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@600 ef36b2f9-881f-0410-afb5-c4e39611909c
* test for hugegroupArthur de Jong2008-02-011-1/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@599 ef36b2f9-881f-0410-afb5-c4e39611909c
* the groups command no longer lists the usernameArthur de Jong2008-02-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@598 ef36b2f9-881f-0410-afb5-c4e39611909c
* re-add test URIs that accidentally got commented out in ↵Arthur de Jong2008-01-311-2/+2
| | | | | | the last commit git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@590 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass the correct pthread flags for all calls to compiler ↵Arthur de Jong2008-01-314-16/+24
| | | | | | and linker and link in compat code, handle other assert.h setups and avoid some ! in if statements in shell scripts git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@589 ef36b2f9-881f-0410-afb5-c4e39611909c
* include errno in assertion statementArthur de Jong2008-01-301-27/+41
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@578 ef36b2f9-881f-0410-afb5-c4e39611909c
* when including stdint.h check if we actually have itArthur de Jong2008-01-271-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
* handle the case where /etc/nss-ldapd.conf does not exist ↵Arthur de Jong2008-01-261-0/+6
| | | | | | a little more graceful git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@568 ef36b2f9-881f-0410-afb5-c4e39611909c
* somewhat improve the output from the testsArthur de Jong2008-01-263-52/+52
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@564 ef36b2f9-881f-0410-afb5-c4e39611909c
* also test map filter and scope configuration optionsArthur de Jong2008-01-261-1/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@562 ef36b2f9-881f-0410-afb5-c4e39611909c
* add a test for the map statementArthur de Jong2008-01-161-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@560 ef36b2f9-881f-0410-afb5-c4e39611909c
* support the case where + is in /etc/groupArthur de Jong2008-01-031-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@557 ef36b2f9-881f-0410-afb5-c4e39611909c
* get the number of groups and services from files in /etc ↵Arthur de Jong2008-01-031-4/+3
| | | | | | for comparison git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@554 ef36b2f9-881f-0410-afb5-c4e39611909c
* check to see if nslcd is running and add test for a ↵Arthur de Jong2008-01-011-4/+24
| | | | | | large group (100 members) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@550 ef36b2f9-881f-0410-afb5-c4e39611909c
* add limited implementation of tio_mark() and tio_reset() ↵Arthur de Jong2008-01-011-5/+74
| | | | | | functions to do limited seeks in the read stream, clean up header file comments and write tests for new code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@547 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove temporary file to make distcheck succeedArthur de Jong2007-12-261-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@538 ef36b2f9-881f-0410-afb5-c4e39611909c
* ignore erros in nss commandsArthur de Jong2007-12-261-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@536 ef36b2f9-881f-0410-afb5-c4e39611909c