ee164913f9c12a557044eb469f4498b9be9a8f50 |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA_RULES_COMMON: Introduce ipa_common_get_hostgroupname()
By moving the get_ipa_hostgroupname() method from ipa_hbac_hosts.[ch] to
ipa_rules_common.[ch] it can be used by both HBAC and, in the future,
for new backend modules.
The method got renamed to ipa_common_get_hostgroupname() and some coding
style changes have been made in order to match with what SSSD follows.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
e17e37cd0e2109e7f1bd4ae48edfc8cca85b3f93 |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA_ACCESS: Make hbac_get_cache_rules() more generic
This method can also be reused in the future for new backend modules.
In order to make it more generic, let's just move it to
ipa_rules_common.[ch], rename it to ipa_common_get_cached_rules() and
make the rule, subtree name and the attributes to be searched new
parameters of this method.
In order to not be declaring the enourmous list of attributes HBAC uses
when calling this method, a new hbac_get_attrs_to_get_cached_rules()
method has been introduced.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
21909d3b620d97e81dd946b959a47efe88d2b7d8 |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA: Leave only HBAC specific defines in ipa_hbac_private.h
The defines that were moved can and will be used by another backend
module that will be introduced in the near future.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
9a18f78f38e274f4906af6ef8e1a82d844fde4cc |
|
28-Aug-2017 |
Fabiano Fidêncio <fidencio@redhat.com> |
IPA: Make ipa_hbac_sysdb_save() more generic
Although there's no change in the ipa_hbac_sysdb_save() itself, its name
has been changed to ipa_common_entries_and_groups_sysdb_save() and its
been split out from HBAC related files and moved to the newly created
ipa_rules_common.[ch] files, which will also be used in the future for
new backend modules.
ipa_rules_common.[ch] is not exactly the best name for those files, IMO,
but I really cannot come up with something better.
Related:
https://pagure.io/SSSD/sssd/issue/2995
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
e0c86d21388bffe2e3919e780780c40d96186abb |
|
12-Mar-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
libipa_hbac: Move the library to src/lib/ipa_hbac
Moving the library to the lib directory will force maintainers to think
twice about changes, because it would be obvious this is a library.
Also don't use includes from sssd source tree paths, but add the util
path to Makefile's CFLAGS so that other projects can copy the
hbac_evaluator.c file verbatim.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
e0404de84c31d2387bb244d018a5cac8d01f8b19 |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb arg from [ipa_]hbac_sysdb_save()
Also make ipa_hbac_save_list() static |
697160f588c509982e9b504ecb857cea7dd308a5 |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb arg from ipa_hbac_service_info_send() |
18cb0d6489d01a61a2f7bf53815f53a58e9ade0d |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb arg from hbac_*host_attrs_to_rule() |
0700185377ad23885cc2ddae20abe0dc36a3abca |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb arg from hbac_service_attrs_to_rule() |
8a81628d58dd2991d53398a213916671e14592d8 |
|
21-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Remove sysdb argument from hbac_user_attrs_to_rule() |
044868b388b4e47499f12a9105310b247bbe1ce2 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arg to sysdb_search_users() |
770896b194b7b66b09c2a30545b4d091fd86b1f4 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_search_custom()
Also changes sysdb_search_custom_by_name() |
8455d5ab61184e0d126fc074a9ce6e98391eb909 |
|
20-Nov-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
LDAP: Only convert direct parents' ghost attribute to member
https://fedorahosted.org/sssd/ticket/1612
This patch changes the handling of ghost attributes when saving the
actual user entry. Instead of always linking all groups that contained
the ghost attribute with the new user entry, the original member
attributes are now saved in the group object and the user entry is only
linked with its direct parents.
As the member attribute is compared against the originalDN of the user,
if either the originalDN or the originalMember attributes are missing,
the user object is linked with all the groups as a fallback.
The original member attributes are only saved if the LDAP schema
supports nesting. |
fdab7bbf8933351f6254438c30ff361cd748b15a |
|
24-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
IPA hosts refactoring |
ad07ed37b6b51ef134d4524edaf2259e19ac984f |
|
06-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Separate the host-retrieval code from IPA HBAC to common IPA code |
71ad247500b417836a1a2edec257a4433a7c415f |
|
06-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Implemented support for multiple search bases in HBAC rules and services |
c935271de3b99d35112e0faf854cbfa9dfaa104a |
|
14-Jan-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Support multiple search bases in HBAC |
6fb75e297bf7fc83e3db1f5ae8560624656ef319 |
|
29-Nov-2011 |
Jan Zeleny <jzeleny@redhat.com> |
Add ipa_hbac_support_srchost option to IPA provider
don't fetch all host groups if this option is false
https://fedorahosted.org/sssd/ticket/1078 |
ac3a1f3da772cf101101c31675c63dc3549b21b5 |
|
22-Nov-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Cleanup: Remove unused parameters |
c1fcc832ccfc237caac8b99be238cf2d598f908c |
|
14-Oct-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
HBAC: Use originalMember for identifying hostgroups |
f5e22261a2ff95f2a61f4f199fffb8de79668110 |
|
14-Oct-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
HBAC: Use originalMember for identifying servicegroups |
e134a6af42102c8d865e82bf89e0b8c5a40fb5fa |
|
08-Jul-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Add helper functions for looking up HBAC rule components |