summaryrefslogtreecommitdiffstats
path: root/src/sss_client/nss_netgroup.c
Commit message (Collapse)AuthorAgeFilesLines
* NSS: Add sss_readrep_copy_stringStephen Gallagher2012-01-181-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.
* NSS: Validate input string lengthsStephen Gallagher2012-01-141-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
* sss_client: make code thread-safeSimo Sorce2010-11-221-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
* Avoid a global variable in netgroup client.Sumit Bose2010-10-131-37/+25
| | | | | The structure which is used to store the result also provides elements to store a context for the netgroup enumeration call.
* Add handling of nested netgroups to nss clientSumit Bose2010-10-131-68/+104
|
* Return NSS_STATUS_RETURN instead of NSS_STATUS_NOTFOUNDSumit Bose2010-10-131-1/+1
| | | | | NSS_STATUS_RETURN needs to be returned to glibc otherwise nested groups are not resolved by glibc.
* Add support for netgroups to NSS sss_clientStephen Gallagher2010-10-131-0/+292