Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* re-order enum values to use the same order as elsewhereArthur de Jong2012-12-281-6/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1880 ef36b2f9-881f-0410-afb5-c4e39611909c
* more comment fixesArthur de Jong2012-12-243-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1879 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typo in commentArthur de Jong2012-12-241-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1878 ef36b2f9-881f-0410-afb5-c4e39611909c
* move the action argument to NSLCD_HANDLE to the frontArthur de Jong2012-12-2312-65/+35
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1877 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge NSS_BYNAME and NSS_BYINT32 into NSS_BYGEN and ↵Arthur de Jong2012-12-2311-111/+102
| | | | | | rename to NSS_GETONE git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1876 ef36b2f9-881f-0410-afb5-c4e39611909c
* adapt Solaris netgroup lookup codeArthur de Jong2012-12-231-81/+83
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1875 ef36b2f9-881f-0410-afb5-c4e39611909c
* update the netgroup by name request to have one result ↵Arthur de Jong2012-12-235-98/+116
| | | | | | entry per netgroup with multiple rows within one result git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1874 ef36b2f9-881f-0410-afb5-c4e39611909c
* update C coding style to a more commonly used styleArthur de Jong2012-12-2283-6260/+6488
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't process the passwd_byuid request at all for uids < ↵Arthur de Jong2012-12-201-0/+1
| | | | | | nss_min_uid git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1870 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix logic error (use && instead of & for logical and)Arthur de Jong2012-12-201-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1868 ef36b2f9-881f-0410-afb5-c4e39611909c
* also no longer use NSS_BYINT32() in Solaris (fixes r1864)Arthur de Jong2012-12-163-9/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1867 ef36b2f9-881f-0410-afb5-c4e39611909c
* make nslcd actions hexadecimal values with some ↵Arthur de Jong2012-12-162-44/+44
| | | | | | structure to make debugging easier git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1866 ef36b2f9-881f-0410-afb5-c4e39611909c
* change PAM protocol to be more consistent and simplerArthur de Jong2012-12-164-260/+288
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1865 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch protocol from host byte order to network byte ↵Arthur de Jong2012-12-1618-101/+82
| | | | | | order and switch use of uid_t and gid_t in the protocol to int32 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1864 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge config.py into constants.py and generate it from ↵Arthur de Jong2012-12-156-31/+31
| | | | | | configure git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1863 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unneeded bracketsArthur de Jong2012-12-141-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1859 ef36b2f9-881f-0410-afb5-c4e39611909c
* also test for correct value of errno on timeout and make ↵Arthur de Jong2012-12-141-3/+14
| | | | | | read and write timeout tests consistent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1858 ef36b2f9-881f-0410-afb5-c4e39611909c
* also output debugging info in test_timeout_reader testArthur de Jong2012-12-141-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1857 ef36b2f9-881f-0410-afb5-c4e39611909c
* update microseconds when setting deadline, not seconds ↵Arthur de Jong2012-12-081-1/+1
| | | | | | (thanks Julien Cristau) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1848 ef36b2f9-881f-0410-afb5-c4e39611909c
* make test even more verbose and set number of writes ↵Arthur de Jong2012-12-062-5/+9
| | | | | | back at 10000 to avoid issues with systems with large buffers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1846 ef36b2f9-881f-0410-afb5-c4e39611909c
* rephrase test to more clearly explain what we're testing ↵Arthur de Jong2012-11-301-9/+14
| | | | | | and be a little more verbose git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1845 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove inline keyword (should have been removed in r1840)Arthur de Jong2012-11-251-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1842 ef36b2f9-881f-0410-afb5-c4e39611909c
* if nsswitch.conf is missing a shadow entry, fall back to ↵Arthur de Jong2012-11-251-4/+17
| | | | | | checking the passwd mapping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1841 ef36b2f9-881f-0410-afb5-c4e39611909c
* move all nsswitch-parsing related functions to nsswitch.cArthur de Jong2012-11-253-64/+61
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1840 ef36b2f9-881f-0410-afb5-c4e39611909c
* small fix for .gitignoreArthur de Jong2012-11-251-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1839 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that values are logged as unsigned numbersArthur de Jong2012-11-225-5/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1838 ef36b2f9-881f-0410-afb5-c4e39611909c
* get files ready for 0.8.12 release0.8.12Arthur de Jong2012-11-188-11/+137
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1834 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly initialise passwd.pw_class on FreeBSD to empty ↵Arthur de Jong2012-11-182-0/+8
| | | | | | string (was set to NULL due to the memset which was introduced in r1767) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1833 ef36b2f9-881f-0410-afb5-c4e39611909c
* use pam_modutil_getpwnam() instead of getpwnam() in PAM ↵Arthur de Jong2012-11-171-1/+1
| | | | | | module git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1832 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix formatting and improve consistency in manaual pagesArthur de Jong2012-11-172-16/+22
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1831 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove dots from short description in manual pageArthur de Jong2012-11-162-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1828 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix comment in headerArthur de Jong2012-11-161-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1827 ef36b2f9-881f-0410-afb5-c4e39611909c
* to only set LDAP_OPT_X_SASL_NOCANON if the ↵Arthur de Jong2012-11-135-6/+11
| | | | | | sasl_canonicalize option is explicitly set in the configuration file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1824 ef36b2f9-881f-0410-afb5-c4e39611909c
* log the PAM error message along with the message from ↵Arthur de Jong2012-11-111-1/+5
| | | | | | nslcd if it is available git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1823 ef36b2f9-881f-0410-afb5-c4e39611909c
* add a .gitignore file for those working with gitArthur de Jong2012-11-111-0/+66
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1822 ef36b2f9-881f-0410-afb5-c4e39611909c
* set FD_CLOEXEC in NSS and PAM modules to ensure that ↵Arthur de Jong2012-11-111-0/+6
| | | | | | nslcd file descriptor is not leaked to child processes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1821 ef36b2f9-881f-0410-afb5-c4e39611909c
* log connection message before clearing error indicators ↵Arthur de Jong2012-11-111-3/+3
| | | | | | to not hide these log messages in most configurations (fixes r1095) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1814 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor the read_result() functions into a common macro ↵Arthur de Jong2012-10-2811-319/+125
| | | | | | and move all the Solaris-specific definitions to solnss.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1812 ef36b2f9-881f-0410-afb5-c4e39611909c
* combine read_hostent_erronempty() and ↵Arthur de Jong2012-10-281-67/+31
| | | | | | read_hostent_nextonempty() into a read_hostent() with a retry parameter git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1811 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typo (thanks Ted C. Cheng)Arthur de Jong2012-10-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1810 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix buffer size checking in group by member NSS function ↵Arthur de Jong2012-10-261-1/+9
| | | | | | on Solaris git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1809 ef36b2f9-881f-0410-afb5-c4e39611909c
* introduce ent2str() functions for each database (except ↵Arthur de Jong2012-10-2610-364/+416
| | | | | | ether and netgroup) and make buffer handling consistent (for Solaris) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1808 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove duplicate checks from the configure scriptArthur de Jong2012-10-211-2/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1807 ef36b2f9-881f-0410-afb5-c4e39611909c
* ignore generated pynslcd manual pagesArthur de Jong2012-10-210-0/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1806 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a problem on Solaris (fixes r1793)Arthur de Jong2012-10-211-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1805 ef36b2f9-881f-0410-afb5-c4e39611909c
* make a pynslcd manual page and install it if pynslcd is ↵Arthur de Jong2012-10-213-2/+154
| | | | | | enabled (and small fix in nslcd manual page) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1804 ef36b2f9-881f-0410-afb5-c4e39611909c
* allow attribute options in attribute mapping expressionsArthur de Jong2012-10-192-1/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1803 ef36b2f9-881f-0410-afb5-c4e39611909c
* get files ready for 0.8.11 release0.8.11Arthur de Jong2012-10-146-8/+305
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1798 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove extra code that sets PACKAGE_URL (which isn't used)Arthur de Jong2012-10-141-6/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1797 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not clear the netgroup struct because it contains ↵Arthur de Jong2012-10-141-1/+0
| | | | | | information for others as well (fixes r1767) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1796 ef36b2f9-881f-0410-afb5-c4e39611909c