summaryrefslogtreecommitdiff
path: root/src/responder
AgeCommit message (Collapse)AuthorFilesLines
2012-02-13Check for failure in sss_packet_grow()Stephen Gallagher1-5/+5
Coverity #12489
2012-02-13Avoid uninitialized value comparisonStephen Gallagher1-0/+3
Coverity #12526
2012-02-13SSH: Verify that names received from client are valid UTF-8 in responderJan Cholasta1-0/+4
Also added a comment describing the wire format of client requests and responses. https://fedorahosted.org/sssd/ticket/1177
2012-02-13Allocate setent structure on state, not on the client contextJakub Hrozek4-9/+9
https://fedorahosted.org/sssd/ticket/1189
2012-02-13Remove setent structure when callback is calledJakub Hrozek5-22/+16
2012-02-10Only fetch SELinux string if the user is foundJakub Hrozek1-1/+2
2012-02-10SUDO responder: check if the input is a UTF-8 stringPavel Březina1-0/+7
https://fedorahosted.org/sssd/ticket/1171
2012-02-10Fix group enumerationJakub Hrozek2-2/+9
Also adds some more debugging and fixes a code style issue. https://fedorahosted.org/sssd/ticket/1182
2012-02-07Fix SSH compilation on RHEL5Jakub Hrozek1-0/+3
2012-02-07SSH: ResponderJan Cholasta3-0/+872
2012-02-07DP: Add support for hosts in sss_dp_get_accountJan Cholasta2-2/+13
Host requests are directed to the host info handler.
2012-02-06SUDO Integration - fix offline behaviourPavel Březina1-2/+2
2012-02-06SELinux support in PAM responderJan Zeleny1-0/+163
2012-02-05AUTOFS: responderJakub Hrozek6-3/+1720
2012-02-05Split the logic to check cache expiration into separate functionJakub Hrozek3-43/+73
2012-02-05RESPONDERS: Refactor setent_req_listJakub Hrozek6-100/+133
Makes the setent_add_ref() and setent_notify_*() functions more generic to be reusable by the autofs responder.
2012-02-04SUDO Integration - responder 'sudo_timed' optionPavel Březina3-1/+32
https://fedorahosted.org/sssd/ticket/1116
2012-02-04SUDO Integration - in-memory cache in responderPavel Březina5-9/+415
New sudo responder option: cache_timeout https://fedorahosted.org/sssd/ticket/1111
2012-02-04NSS: Add individual timeouts for entry typesStephen Gallagher1-1/+1
https://fedorahosted.org/sssd/ticket/1016
2012-02-04NSS: Use sss_hash_create instead of destructorJakub Hrozek2-13/+2
2012-02-02RESPONDERS: Provide a common sss_cmd_send_error functionJakub Hrozek3-13/+19
The common function could be reused in new responders
2012-01-31Refactor nss_cmd_send_emptyJakub Hrozek6-41/+46
2012-01-30Fix sudo compilation on RHEL5Jakub Hrozek1-0/+2
2012-01-27SUDO Integration - responder command for cn=defaultsPavel Březina4-18/+93
https://fedorahosted.org/sssd/ticket/1143
2012-01-27SUDO Integration - prepare data provider for new responder commandsPavel Březina1-1/+1
https://fedorahosted.org/sssd/ticket/1143
2012-01-27SUDO Integration - make sysdb_get_sudo_filter() more configurablePavel Březina1-2/+5
https://fedorahosted.org/sssd/ticket/1143
2012-01-27Rename sss_dp_type to sss_dp_sudo_typeStephen Gallagher2-4/+4
I pushed an older version of this patch that had the incorrect name. This is the interdiff.
2012-01-27Use the new SUDO request in DP and sudo responderJakub Hrozek3-216/+67
Also remove the old request implementation https://fedorahosted.org/sssd/ticket/1115
2012-01-27SUDO: Provide a sudo DP request based on the internal_reqJakub Hrozek2-0/+144
2012-01-27NSS: Add service enumeration support to NSS providerStephen Gallagher3-1/+662
2012-01-27DP: Refactor responder_dp_req so it's reusable by other respondersJakub Hrozek3-240/+349
* the internal request is now more generic and is decoupled from account-specific data. There is a new sss_dp_issue_request() wrapper that issues a BE request or registers a callback * the public requests all use struct sss_dp_req_state as the tevent_req state data. This allows to report back data from the internal request even if the caller is just a callback notifier * each specific request now uses an _info structure that contains all the data necessary to construct a DBusMessage passed to provider * each specific request now defines a sss_dp_get_$data_msg callback that is called from the sss_dp_issue_request() common wraper. The purpose of the wrapper is to construct a DBusMessage and bind it to a DBus method so the message can be just sent over to back end The miscellanous changes include: * change SSS_DP_ constants to an enum. This way, a switch() would error if a value is not handled. * rename sss_dp_get_account_int_send() to sss_dp_internal_get_send() request because the internal request is going to handle more than just account data * the DBus return values were renamed from err_maj, err_min to dp_err and dp_ret respectively
2012-01-27NSS: Add getservbyname and getservbyport support to the NSS ResponderStephen Gallagher3-0/+1209
2012-01-27NSS: Add negative cache routines for servicesStephen Gallagher2-3/+132
2012-01-27DP: Add support for services in dp requestsStephen Gallagher2-0/+4
2012-01-26PAM: Do not overwrite retJakub Hrozek1-3/+1
2012-01-23Move sized_string declaration to utilsStephen Gallagher2-19/+0
2012-01-23DP: Fix bugs in sss_dp_get_account_intStephen Gallagher4-66/+47
The conversion to the tevent_req style introduced numerous bugs related to memory management of the various client requests. In some circumstances, this could cause memory corruption and segmentation faults in the NSS responder. This patch makes the following changes: 1) Rename the internal lookup from subreq to sidereq, to indicate that it is not a sub-request of the current lookup (and therefore is not cancelled if the current request is). 2) Change the handling of the callback loops since they call tevent_req_[done|error], which results in them being freed (and therefore removed from the cb_list. This was the source of the memory corruption that would occasionally result in dereferencing an unreadable request. 3) Remove the unnecessary sss_dp_get_account_int_recv() function and change sss_dp_get_account_done() so that it only frees the sidereq. All of the waiting processes have already been signaled with the final results from sss_dp_get_account_int_done()
2012-01-21RESPONDER: Extend sss_dp_account_send() to include extra dataStephen Gallagher5-14/+32
Some NSS maps such as 'services' require more values to be passed to the data provider than just the name or ID. In these cases, we will amend an optional component to filter value to pass to the data provider backend.
2012-01-18PAM: Fix reversed logicJakub Hrozek1-1/+1
2012-01-17SUDO Integration review issuesPavel Březina2-1/+4
2012-01-17NSS: Improve DEBUG messages for netgroup cacheStephen Gallagher1-2/+2
2012-01-09nsssrv: use sized_string in fill_grentSimo Sorce1-35/+48
2012-01-09nsssrv: use sized_string in fill_pwentSimo Sorce1-41/+56
2012-01-09nsssrv: add string manipulation helperSimo Sorce2-0/+19
the sized_string structure makes it easier to keep track of string lengths and makes passing around data more compat and readable.
2012-01-04nsssrv: remove unused macroSimo Sorce1-2/+0
2011-12-21Return user and group names lowercased in case insensitive domainsJakub Hrozek1-12/+32
2011-12-21sss_get_cased_name utility functionJakub Hrozek3-11/+11
2011-12-20PAM: make initgroups timeout work across multiple clientsStephen Gallagher6-6/+241
Instead of timing out the initgroups lookup on a per-cctx basis, we will maintain a hash table of recently-seen users and use this instead. This will allow SSSD to handle user's logging into multiple services simultaneously more graciously, as well as playing nicer with SSH (which makes calls to PAM both before and after a fork). https://fedorahosted.org/sssd/ticket/1063
2011-12-19Deleted declaration of nss_get_dom()Jan Zeleny1-4/+0
This function has been renamed to responder_get_domain() but this declaration hasn't been deleted.
2011-12-19Pass client context to sss_dp_get_account_sendJakub Hrozek1-1/+1