summaryrefslogtreecommitdiff
path: root/nss/services.c
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.
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-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-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-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-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-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-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-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
2010-12-16switch to a common back-end with a common constructor and destructor and put ↵Arthur de Jong
file pointer shared between {set,get,end}ent() calls in there git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1333 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-13have a more consistent naming convention for static lookup functionsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1331 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-13fix assignment in if statement (was broken in r1262)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1330 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-11also try to support older Solaris releases that do not have the returnlen ↵Arthur de Jong
member of struct nss_XbyY_args git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1262 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-10generate Solaris NSS functions using same macros that are used for Glibc, ↵Arthur de Jong
splitting functionality to make a string representation into a single function per NSS map git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1258 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-09have one shared file handle per flavour instead of one global one (for now) ↵Arthur de Jong
and re-introduce some other minor changes that got lost in r1247 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1249 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-09re-introduce rename of protoentfp to serventfp which was introduced in r1246 ↵Arthur de Jong
and accidentally lost in r1247 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1248 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-09nss-pam-ldapd fixes for solaris 10 buildTed Cheng
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1247 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-08re-introduce {set,get,end}**ent() file handle in Solaris code path and some ↵Arthur de Jong
other miscellaneous small fixes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1246 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-04merge changes from trunkArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1242 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-04try to make use of UNUSED() consistentArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1241 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-04improve consistency of code layoutArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1240 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-10-03first attempt to split Solaris and Glibc code more and determine NSS flavour ↵Arthur de Jong
in configure script git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1236 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-09-30import Solaris support developed by Ted C. Cheng of Symas Corporation merged ↵Arthur de Jong
against SVN head (parts remain to be cleaned up) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1232 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-09-24switch to using nss_status_t throughout the code and provide compatibility ↵Arthur de Jong
code to use whatever nss_status type is used on the system git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1214 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-07-27use htons() instead of ntohs() (thanks Ted C. Cheng)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1167 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-06-14remove some unused include statementsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1139 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-05-21refactor protocol reading and writing macros to the common directory, use ↵Arthur de Jong
more logical names and in the PAM module no longer use NSS status codes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@887 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-01-03only start the NSLCD_ACTION_*_ALL requests with the first call to getent() ↵Arthur de Jong
instead of with setent() to avoid unneeded requests if compat is used (except with netgroups) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@556 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-08implement our own stdio-like library that handles IO with a simple ↵Arthur de Jong
configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-03-04code improvements by making type casts explicit, flagging ignored return ↵Arthur de Jong
values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-02-17add gcc attributes to some functions and parametersArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-01-17ensure that all NSS functions can be generated by the marcos in common.h and ↵Arthur de Jong
spell out the read_..() function for every type git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@227 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-01-09change license from GNU Library General Public License v.2 to GNU Lesser ↵Arthur de Jong
General Public License v.2.1 with permission from Luke Howard git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@215 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-11-28rename LDF_ marcos to NSLCD_ macros to have a single namespaceArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@134 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-11-27get rid of nslcd-client.{c,h} and move it to nss/common.{c,h}, this ensures ↵Arthur de Jong
that all code that is needed for the nss part is in the nss directory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@127 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-11-25implement server end of service name lookup and fix client end to translate ↵Arthur de Jong
between host and network byte order and to also pass protocol in request git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@123 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-11-17do some refactoring in the generated code and add some documentation on ↵Arthur de Jong
generated code in comments in common.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@96 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-11-16implement reading of services entitiesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@95 ef36b2f9-881f-0410-afb5-c4e39611909c