summaryrefslogtreecommitdiff
path: root/src/sss_client/nss_netgroup.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-18NSS: Add sss_readrep_copy_stringStephen Gallagher1-65/+40
There were many places in the client code where we were duplicating a loop to copy data in from the response buffer. This patch turns those loops into a function for easier maintenance and easier-to-read *readrep() routines.
2012-01-14NSS: Validate input string lengthsStephen Gallagher1-3/+1
Also fixes a return value bug where we were returning errno error codes instead of nss_status codes. Fixes https://fedorahosted.org/sssd/ticket/1135
2010-11-22sss_client: make code thread-safeSimo Sorce1-11/+37
Add mutexes around nss operations and serialize them. This is necessary because nss operations may have global state. For pam it is sufficient to protect socket operations instead. As pam functions use only the provided pam handler. Fixes: https://fedorahosted.org/sssd/ticket/640
2010-10-13Avoid a global variable in netgroup client.Sumit Bose1-37/+25
The structure which is used to store the result also provides elements to store a context for the netgroup enumeration call.
2010-10-13Add handling of nested netgroups to nss clientSumit Bose1-68/+104
2010-10-13Return NSS_STATUS_RETURN instead of NSS_STATUS_NOTFOUNDSumit Bose1-1/+1
NSS_STATUS_RETURN needs to be returned to glibc otherwise nested groups are not resolved by glibc.
2010-10-13Add support for netgroups to NSS sss_clientStephen Gallagher1-0/+292