summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv_get_sudorules.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix potential NULL-dereferenceStephen Gallagher2012-07-091-1/+2
| | | | Coverity #12800
* Fix potential NULL-dereferenceStephen Gallagher2012-07-091-1/+3
| | | | Coverity #12801
* sudo responder: schedule OOB full refresh when expired rule is deletedPavel Březina2012-06-291-4/+38
|
* sudo responder: refresh expired rulesPavel Březina2012-06-291-31/+106
|
* sudo responder: update dp interfacePavel Březina2012-06-291-1/+2
|
* sudo responder: allow fetching only expired rules in ↵Pavel Březina2012-06-291-25/+22
| | | | sudosrv_get_sudorules_query_cache()
* sudo sysdb: add expiration time to the filterPavel Březina2012-06-291-1/+1
|
* sudo responder: new request enum typePavel Březina2012-06-291-7/+8
| | | | | | | | | sss_sudo_type represents query type that comes to the responder sss_dp_sudo_type represents query type to DP that is issued by the responder I'm leaving current values of sss_dp_sudo_type untouched so the compilation is not broken. Hovewer, they will be changed to new DP types once the DP interface is updated.
* sudo api: send uid, username and domainnamePavel Březina2012-06-291-20/+31
| | | | | | | | | | | https://fedorahosted.org/sssd/ticket/1239 Test client was changed accordingly. The new usage is: sss_sudo_cli username [uid] If uid is not set, getpwnam(username) is called. It will retrieve both default options and rules.
* sudo responder: get rid of dctx where possiblePavel Březina2012-06-291-55/+59
|
* sudo responder: remove code duplication in commandsPavel Březina2012-06-291-78/+0
|
* Remove sysdb_get_ctx_from_list()Sumit Bose2012-02-291-7/+4
|
* Move sudo_dom_ctx.user to local variablePavel Březina2012-02-231-7/+8
|
* Honor case_sensitive option in sudo responderPavel Březina2012-02-231-15/+61
| | | | https://fedorahosted.org/sssd/ticket/1205
* SUDO Integration - fix offline behaviourPavel Březina2012-02-061-2/+2
|
* SUDO Integration - in-memory cache in responderPavel Březina2012-02-041-5/+20
| | | | | | New sudo responder option: cache_timeout https://fedorahosted.org/sssd/ticket/1111
* Fix sudo compilation on RHEL5Jakub Hrozek2012-01-301-0/+2
|
* SUDO Integration - responder command for cn=defaultsPavel Březina2012-01-271-13/+24
| | | | https://fedorahosted.org/sssd/ticket/1143
* SUDO Integration - make sysdb_get_sudo_filter() more configurablePavel Březina2012-01-271-2/+5
| | | | https://fedorahosted.org/sssd/ticket/1143
* Use the new SUDO request in DP and sudo responderJakub Hrozek2012-01-271-17/+67
| | | | | | Also remove the old request implementation https://fedorahosted.org/sssd/ticket/1115
* DP: Fix bugs in sss_dp_get_account_intStephen Gallagher2012-01-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | 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()
* RESPONDER: Extend sss_dp_account_send() to include extra dataStephen Gallagher2012-01-211-1/+1
| | | | | | | 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.
* SUDO Integration review issuesPavel Březina2012-01-171-1/+2
|
* SUDO Integration - responder - get sudo rules logicJakub Hrozek2011-12-161-2/+444
|
* SUDO Integration - responderPavel Březina2011-12-161-0/+113