summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_hbac_common.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-28Replace new_subdomain() with find_subdomain_by_name()Sumit Bose1-2/+2
new_subdomain() will create a new domain object and should not be used anymore in the priovder code directly. Instead a reference to the domain from the common domain object should be used.
2013-03-13Fix initialization of multiple variablesOndrej Kos1-1/+1
2013-02-10Add realm info to sss_domain_infoSimo Sorce1-1/+1
2013-01-21Add be_req_get_be_ctx() helper.Simo Sorce1-9/+7
In preparation for making be_req opaque
2013-01-21Remove domain from be_req structureSimo Sorce1-5/+5
2013-01-21Remove hbac_ctx_be()Simo Sorce1-1/+1
2013-01-21Remove hbac_ctx_sysdb()Simo Sorce1-5/+4
2013-01-21Remove sysdb arg from [ipa_]hbac_sysdb_save()Simo Sorce1-22/+16
Also make ipa_hbac_save_list() static
2013-01-21Remove sysdb arg from hbac_*host_attrs_to_rule()Simo Sorce1-2/+0
2013-01-21Remove sysdb arg from hbac_service_attrs_to_rule()Simo Sorce1-1/+0
2013-01-21Remove sysdb argument from hbac_user_attrs_to_rule()Simo Sorce1-1/+0
2013-01-15Add domain arg to sysdb_search_users()Simo Sorce1-0/+1
2013-01-15Add domain argument to sysdb_search_custom()Simo Sorce1-0/+3
Also changes sysdb_search_custom_by_name()
2013-01-15Add domain argument to sysdb_store_custom()Simo Sorce1-1/+1
2013-01-15Add domain to sysdb_search_user_by_name()Simo Sorce1-3/+6
Also remove unused sysdb_search_domuser_by_name()
2013-01-15Make sysdb_custom_subtree_dn() require a domain.Simo Sorce1-1/+1
2013-01-15Make sysdb_custom_dn() require a domain.Simo Sorce1-2/+4
2012-11-19Do not save HBAC rules in subdomain subtreeSumit Bose1-3/+16
Currently the sysdb context is pointed to the subdomain subtree containing user the user to be checked at the beginning of a HBAC request. As a result all HBAC rules and related data is save in the subdomain tree as well. But since the HBAC rules of the configured domain apply to all users it is sufficient to save them once in the subtree of the configured domain. Since most of the sysdb operations during a HBAC request are related to the HBAC rules and related data this patch does not change the default sysdb context but only create a special context to look up subdomain users.
2012-09-24SYSDB: Remove unnecessary domain parameter from several sysdb callsJakub Hrozek1-5/+3
The domain can be read from the sysdb object. Removing the domain string makes the API more self-contained.
2012-08-23Unify usage of sysdb transactionsMichal Zidek1-2/+8
Removing bad examples of usage of sysdb_transaction_start/commit/end functions and making it more consistent (all files except of src/db/sysdb_*.c).
2012-01-06HBAC: create empty groups with one NULL elementJakub Hrozek1-16/+15
https://fedorahosted.org/sssd/ticket/1130
2011-11-29Add ipa_hbac_support_srchost option to IPA providerJan Zeleny1-0/+3
don't fetch all host groups if this option is false https://fedorahosted.org/sssd/ticket/1078
2011-11-22Cleanup: Remove unused parametersJakub Hrozek1-7/+1
2011-10-17Add a missing breakJakub Hrozek1-0/+1
2011-10-14HBAC: Use originalMember for identifying hostgroupsStephen Gallagher1-45/+51
2011-10-14HBAC: Use originalMember for identifying servicegroupsStephen Gallagher1-41/+55
2011-10-14HBAC: Do not save member/memberOf linksStephen Gallagher1-120/+0
We can just trust the values from the FreeIPA server
2011-09-28HBAC: fix typos preventing proper hostgroup evaluationStephen Gallagher1-3/+3
2011-09-28Multiline macro cleanupJakub Hrozek1-1/+1
This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again.
2011-08-26HBAC: Handle saving groups that have no membersStephen Gallagher1-7/+21
2011-08-15sysdb refactoring: memory context deletedJan Zeleny1-2/+2
This patch deletes memory context parameter in those places in sysdb where it is not necessary. The code using modified functions has been updated. Tests updated as well.
2011-08-15sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny1-7/+5
The patch also updates code using modified functions. Tests have also been adjusted.
2011-07-29Fix incorrect NULL check in ipa_hbac_common.cStephen Gallagher1-1/+1
https://fedorahosted.org/sssd/ticket/936
2011-07-08Treat NULL or empty rhost as unknownStephen Gallagher1-9/+21
Previously, we were assuming this meant it was coming from the localhost, but this is not a safe assumption. We will now treat it as unknown and it will fail to match any rule that requires a specified srchost or group of srchosts.
2011-07-08Add helper functions for looking up HBAC rule componentsStephen Gallagher1-0/+871