summaryrefslogtreecommitdiff
path: root/nss
AgeCommit message (Collapse)Author
2014-10-04remove non-nslcd stuffLuke Shumaker
2014-06-06Return correct port number on SolarisArthur de Jong
This is a small fix for when using nscd (which still does not seem to work completely). The port is stored in network byte order but should be printed in host byte order.
2014-03-02Use right h_errnop for retrying with larger bufferNalin Dahyabhai
The libc nsswitch code expects h_errno to be set to NETDB_INTERNAL when it needs to try again with a larger buffer. Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
2014-03-02Fix crash when retrieving large networks entriesLukas Slebodnik
If NSS_STATUS_TRYAGAIN is returned from read_one_hostent or read_one_netent then fp will be closed and function tio_skipall will be called with NULL pointer. It could happend in functions: _nss_ldap_getnetbyname_r _nss_ldap_getnetbyaddr_r _nss_ldap_gethostbyname2_r _nss_ldap_gethostbyaddr_r Fixes r548 (aka afd5d9b).
2014-01-05Fix memory leaks related to set_pop()Arthur de Jong
Some pieces of code did not properly free() the value returned by set_pop(). The leak in group code was related to the introduction of nested group functionality in 41ba574 (merged in 3daa68d) so should only be present in releases 0.9.0 forward. The leak in the netgroup code only ended up in the Solaris version of the NSS module and was introduced in 4ea9ad1 (merged in 5c8779d). This leak is present in all releases from 0.8.0 forward.
2013-10-29Fix a number of compiler warningsArthur de Jong
This includes a number of small fixes for issues that were formerly masked by the incorrect AC_LANG_PROGRAM check.
2013-08-30Use a timeout when skipping remaining result dataArthur de Jong
When the NSS modules closes the connection and skips any remaining result data, wait for up to 500 msec to read any available data. See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011
2013-03-19NSS: Return TRYAGAIN on zero-length bufferJakub Hrozek
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.
2013-03-11fix the text representation of shadow information for nscd on SolarisArthur de Jong
2013-02-27add missing include statement for NULL definitionArthur de Jong
2013-02-23define and export an _nss_ldap_version symbolArthur de Jong
2013-01-18use the AX_TLS macro to find correct thread-local storage class compiler ↵Arthur de Jong
directive git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1921 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-23merge NSS_BYNAME and NSS_BYINT32 into NSS_BYGEN and rename to NSS_GETONEArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1876 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-23adapt Solaris netgroup lookup codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1875 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-23update the netgroup by name request to have one result entry per netgroup ↵Arthur de Jong
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
2012-12-22update C coding style to a more commonly used styleArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-16also no longer use NSS_BYINT32() in Solaris (fixes r1864)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1867 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-16switch protocol from host byte order to network byte order and switch use of ↵Arthur de Jong
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
2012-11-18properly initialise passwd.pw_class on FreeBSD to empty string (was set to ↵Arthur de Jong
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
2012-10-28refactor the read_result() functions into a common macro and move all the ↵Arthur de Jong
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
2012-10-28combine read_hostent_erronempty() and read_hostent_nextonempty() into a ↵Arthur de Jong
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
2012-10-28fix typo (thanks Ted C. Cheng)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1810 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-26fix buffer size checking in group by member NSS function on SolarisArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1809 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-26introduce ent2str() functions for each database (except ether and netgroup) ↵Arthur de Jong
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
2012-10-21fix a problem on Solaris (fixes r1793)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1805 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-14do not clear the netgroup struct because it contains information for others ↵Arthur de Jong
as well (fixes r1767) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1796 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13include missing definition (fixes r1793)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1794 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13do proper range checking and replace READ_RESULT macro with read_result ↵Arthur de Jong
function (Solaris) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1793 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13return correct error for buffer too small (Solaris)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1792 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13in ether handling only write to output values and return correct error for ↵Arthur de Jong
buffer too small git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1791 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13on Solaris initialise the output valuesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1790 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-10-13fix code indentationArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1789 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-15clear the *ent structs before writing fields to avoid problems with extra ↵Arthur de Jong
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
2012-09-14fix host name lookups for Solaris (tested with Solaris 10)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1766 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-14use the standard constructor and destructor eventhough be->fp isn't usedArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1765 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-14fix ethernet lookups for Solaris (tested with Solaris 10)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1764 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-03a few fixes in the Solaris group lookupsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1749 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-03fix indenting of codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1748 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-09-03on Solaris store the errno value in NSS_ARGS(args)->erangeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1747 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-05-18get rid of a few compiler warnings on FreeBSDArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1693 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-04-26split the functionality to read everything from the stream into a separate ↵Arthur de Jong
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
2012-03-16put both tio_skip() and tio_close() within if (fixes r1637) and clarify ↵Arthur de Jong
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
2012-03-14read any remaining available data from the stream when closing the ↵Arthur de Jong
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
2012-01-17FreeBSD compilation fixes by Maxim VetrovArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1597 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-10-12implement group membership NSS function by Tom Judge (taken from FreeBSD PR ↵Arthur de Jong
154000) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1553 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-08-14remove unused variableArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1505 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-03-19small code improvementsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1400 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-03-10update copyright headers to add missing yearsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-01-05add FreeBSD support, partially imported from the FreeBSD port (thanks to ↵Arthur de Jong
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
2011-01-01put solnss.c under EXTRA_nss_ldap_so_SOURCESArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1364 ef36b2f9-881f-0410-afb5-c4e39611909c