Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
Commit message (Collapse)AuthorAgeFilesLines
* NSS: Return TRYAGAIN on zero-length bufferJakub Hrozek2013-03-191-1/+6
| | | | | | One of our customers was running into a situation where glibc provided a zero buffer, which is a condition that is retriable and the nss module should return NSS_STATUS_TRYAGAIN not NSS_STATUS_UNAVAIL.
* fix the text representation of shadow information for ↵Arthur de Jong2013-03-111-7/+7
| | | | nscd on Solaris
* add missing include statement for NULL definitionArthur de Jong2013-02-271-0/+2
|
* define and export an _nss_ldap_version symbolArthur de Jong2013-02-234-1/+15
|
* use the AX_TLS macro to find correct thread-local ↵Arthur de Jong2013-01-1811-22/+22
| | | | | | storage class compiler directive git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1921 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-231-22/+46
| | | | | | 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-2217-934/+955
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 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
* switch protocol from host byte order to network byte ↵Arthur de Jong2012-12-166-27/+23
| | | | | | 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
* properly initialise passwd.pw_class on FreeBSD to empty ↵Arthur de Jong2012-11-181-0/+4
| | | | | | 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
* 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
* 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
* 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
* include missing definition (fixes r1793)Arthur de Jong2012-10-131-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1794 ef36b2f9-881f-0410-afb5-c4e39611909c
* do proper range checking and replace READ_RESULT macro ↵Arthur de Jong2012-10-131-30/+28
| | | | | | with read_result function (Solaris) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1793 ef36b2f9-881f-0410-afb5-c4e39611909c
* return correct error for buffer too small (Solaris)Arthur de Jong2012-10-131-1/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1792 ef36b2f9-881f-0410-afb5-c4e39611909c
* in ether handling only write to output values and return ↵Arthur de Jong2012-10-131-6/+7
| | | | | | correct error for buffer too small git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1791 ef36b2f9-881f-0410-afb5-c4e39611909c
* on Solaris initialise the output valuesArthur de Jong2012-10-131-2/+15
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1790 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix code indentationArthur de Jong2012-10-131-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1789 ef36b2f9-881f-0410-afb5-c4e39611909c
* clear the *ent structs before writing fields to avoid ↵Arthur de Jong2012-09-1511-1/+12
| | | | | | problems with extra fields (fixes password field weirdness on Solaris 10) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1767 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix host name lookups for Solaris (tested with Solaris 10)Arthur de Jong2012-09-141-75/+52
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1766 ef36b2f9-881f-0410-afb5-c4e39611909c
* use the standard constructor and destructor eventhough ↵Arthur de Jong2012-09-141-13/+2
| | | | | | be->fp isn't used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1765 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix ethernet lookups for Solaris (tested with Solaris 10)Arthur de Jong2012-09-141-39/+39
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1764 ef36b2f9-881f-0410-afb5-c4e39611909c
* a few fixes in the Solaris group lookupsArthur de Jong2012-09-031-4/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1749 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix indenting of codeArthur de Jong2012-09-032-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1748 ef36b2f9-881f-0410-afb5-c4e39611909c
* on Solaris store the errno value in NSS_ARGS(args)->erangeArthur de Jong2012-09-0310-47/+44
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1747 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of a few compiler warnings on FreeBSDArthur de Jong2012-05-181-5/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1693 ef36b2f9-881f-0410-afb5-c4e39611909c
* split the functionality to read everything from the ↵Arthur de Jong2012-04-261-2/+2
| | | | | | stream into a separate function and don't assume we use non-blocking IO (fix r1637) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1659 ef36b2f9-881f-0410-afb5-c4e39611909c
* put both tio_skip() and tio_close() within if (fixes ↵Arthur de Jong2012-03-161-1/+5
| | | | | | r1637) and clarify documentation of one part of the code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1638 ef36b2f9-881f-0410-afb5-c4e39611909c
* read any remaining available data from the stream when ↵Arthur de Jong2012-03-141-2/+4
| | | | | | closing the connection in a normal way to prevent Broken pipe messages in nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1637 ef36b2f9-881f-0410-afb5-c4e39611909c
* FreeBSD compilation fixes by Maxim VetrovArthur de Jong2012-01-171-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1597 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement group membership NSS function by Tom Judge ↵Arthur de Jong2011-10-121-4/+59
| | | | | | (taken from FreeBSD PR 154000) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1553 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unused variableArthur de Jong2011-08-141-4/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1505 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code improvementsArthur de Jong2011-03-192-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1400 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright headers to add missing yearsArthur de Jong2011-03-101-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
* add FreeBSD support, partially imported from the FreeBSD ↵Arthur de Jong2011-01-054-2/+188
| | | | | | port (thanks to Jacques Vidrine, Artem Kazakov and Alexander V. Chernikov) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1365 ef36b2f9-881f-0410-afb5-c4e39611909c
* put solnss.c under EXTRA_nss_ldap_so_SOURCESArthur de Jong2011-01-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1364 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that solnss.c ends up in tarballArthur de Jong2011-01-011-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1360 ef36b2f9-881f-0410-afb5-c4e39611909c
* correctly set nss_ldap_so_DEPENDENCIESArthur de Jong2010-12-301-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1353 ef36b2f9-881f-0410-afb5-c4e39611909c
* split netgroup backend into a "normal" backend and one ↵Arthur de Jong2010-12-301-93/+84
| | | | | | for setnetgrent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1352 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement buffer checking and simplify code somewhatArthur de Jong2010-12-302-28/+31
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1351 ef36b2f9-881f-0410-afb5-c4e39611909c
* move Solaris specific NSS functions to separate fileArthur de Jong2010-12-303-37/+53
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1350 ef36b2f9-881f-0410-afb5-c4e39611909c
* move LDAP_BE() definitionArthur de Jong2010-12-172-3/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1335 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove debugging left-oversArthur de Jong2010-12-161-3/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1334 ef36b2f9-881f-0410-afb5-c4e39611909c