summaryrefslogtreecommitdiff
path: root/src/sss_client
AgeCommit message (Collapse)AuthorFilesLines
2012-02-06SELinux support in PAM moduleJan Zeleny1-1/+60
2012-02-06SELinux support in PAM responderJan Zeleny1-0/+4
2012-02-05AUTOFS: a command-line test clientJakub Hrozek1-0/+116
A very simply binary that can be used to test getting data from the library via SSSD in pretty much the same way SSSD would. A required positional parameter specifies the map name and the tool would print out all the key/value pairs using _sss_getautomntent_r(). You can also specify -n to query a specific key using _sss_getautomntbyname_r().
2012-02-05AUTOFS: a client libraryJakub Hrozek5-0/+451
This is the library the autofs client is using. automounter dlopen()s the library so there is no header file, no pkgconfig file and the library is in the libsss_autofs package, not in -devel. The library provides the following interface: * _sss_setautomntent() - select the map for processing * _sss_getautomntent_r() - iterates through key/value pairs in the selected map. The key is usually the mount point, the value is mount information (server:/export) * _sss_getautomntbyname_r() - returns value for a specific key. * _sss_endautomntent() deselect a map, clean up
2012-01-30SUDO: Provide documentation for the SUDO APIJakub Hrozek2-0/+1658
2012-01-30Fix sudo compilation on RHEL5Jakub Hrozek2-0/+3
2012-01-27SUDO Integration - test client changedPavel Březina1-78/+13
Without user name given it displays cn=defaults record. Client no longer display raw data. https://fedorahosted.org/sssd/ticket/1143
2012-01-27SUDO Integration - SUDO API can request only cn=defaults recordPavel Březina3-26/+44
https://fedorahosted.org/sssd/ticket/1143
2012-01-27SUDO Integration - responder command for cn=defaultsPavel Březina1-0/+1
https://fedorahosted.org/sssd/ticket/1143
2012-01-27NSS: Add client support for [set|get|end]servent()Stephen Gallagher1-4/+125
2012-01-27NSS: Add client support for services (non-enumeration)Stephen Gallagher3-5/+388
2012-01-18NSS: Add sss_readrep_copy_stringStephen Gallagher5-181/+131
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-17Export libsss_sudo as a separate packageJakub Hrozek2-0/+27
2012-01-17SUDO Integration review issuesPavel Březina4-7/+8
2012-01-14NSS: Validate input string lengthsStephen Gallagher4-9/+32
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
2011-12-16SUDO Integration - pseudo client for testingPavel Březina1-0/+167
2011-12-16SUDO Integration - API for sudoPavel Březina4-0/+553
2011-12-16SUDO Integration - responderPavel Březina1-0/+3
2011-12-16SUDO integration - client common interfacePavel Březina2-0/+24
2011-12-08Fixed incorrect return code in PAM clientJan Zeleny1-1/+1
The original return code when SSSD was not running was system_err, now it is authinfo_unavail. https://fedorahosted.org/sssd/ticket/1011
2011-11-28sss_cli.h - fix: function declaration after the header guardPavel Březina1-2/+2
2011-11-22Cleanup: Remove unused parametersJakub Hrozek1-8/+2
2011-09-20Added quiet option to pam_sssPavel Březina1-5/+25
https://fedorahosted.org/sssd/ticket/894
2011-08-08Fixed implicit declaration of function 'time' in src/sss_client/common.c.Pavel Březina1-0/+1
2011-07-29sss_client: avoid leaking file descriptorsSimo Sorce1-0/+3
If a pam or nss module is dlcolse()d and unloaded we were leaking the file descriptor used to communicate to sssd in the process. Make sure the fucntion used to close the socket file descriptor is called on dlclose() Silence autoconf 2.28 warnings (Patch by Jakub Hrozek)
2011-05-23Import config.h earlierStephen Gallagher1-1/+1
On RHEL 5 and other older platforms, failing to set _GNU_SOURCE early would cause some functions - such as strndup() - to be unavailable.
2011-05-23Include string.h in sss_cli.hSumit Bose1-0/+1
Since memcpy() is used in sss_cli.h it should be declared here, too.
2011-05-23Set _GNU_SOURCE globallySumit Bose2-7/+1
2011-05-03clients: use poll instead of selectSimo Sorce1-9/+6
select is limited to fd numbers up to 1024, we need to use poll() here to avoid causing memory corruption in the calling process. Fixes: https://fedorahosted.org/sssd/ticket/861
2011-02-11Use neutral name for functions used by both pam and nssSimo Sorce3-49/+64
2011-02-08Check that the socket is really ours before attempting to close it.Simo Sorce1-13/+42
Fixes: https://fedorahosted.org/sssd/ticket/790
2010-12-17Fix wrong test in pam_sssSimo Sorce1-1/+1
2010-12-16Fix segfault for PAM_TEXT_INFO conversationsStephen Gallagher1-1/+1
2010-12-15Fix another possible memory leak in sss_nss_recv_rep()Sumit Bose1-8/+19
https://fedorahosted.org/sssd/ticket/723
2010-12-15Fix possible memory leak in do_pam_conversationSumit Bose1-16/+28
https://fedorahosted.org/sssd/ticket/731
2010-12-14Fix possible memory leak in sss_nss_recv_rep()Sumit Bose1-8/+13
https://fedorahosted.org/sssd/ticket/723
2010-12-14Fix improper bit manipulation in pam_sssSumit Bose1-1/+1
https://fedorahosted.org/sssd/ticket/715
2010-12-03Add a renew task to krb5_childSumit Bose1-1/+7
2010-11-22sss_client: make code thread-safeSimo Sorce5-58/+219
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-11-15Fix incorrect type comparisonStephen Gallagher1-1/+1
https://fedorahosted.org/sssd/ticket/657
2010-11-15Fix cast warning for pam_sss.cStephen Gallagher1-8/+11
2010-11-15Avoid long long in messages to PAM client use int64_tSumit Bose2-9/+9
2010-10-13Avoid a global variable in netgroup client.Sumit Bose2-38/+26
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 Bose2-68/+109
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 Gallagher4-5/+364
2010-10-13Rename group.c and passwd.c for clarityStephen Gallagher2-0/+0
Prefixing group.c and passwd.c with "nss_" similar to the way the PAM client sources are prefixed with "pam_"
2010-10-13Add utility function sss_strnlen()Stephen Gallagher2-0/+34
This is useful for guaranteeing the size of an input buffer.
2010-07-23Allow sssd clients to reconnectSumit Bose1-4/+3
Currently the PAM and NSS client just return an error if there are problems on an open socket. This will lead to problems in long running programs like gdm if sssd is restarted, e.g. during an update. With this patch the socket is closed and reopened.
2010-06-14Potential memory leak in _nss_sss_*_r()Jakub Hrozek2-0/+5
Fixes: #516