From d7c60205a6232f52eec80126a649b1319ed77974 Mon Sep 17 00:00:00 2001 From: Jr Aquino Date: Tue, 31 May 2011 14:52:35 -0700 Subject: Add sudorule and hbacrule to memberof and indirectmemberof attributes Add Add tests for users, groups, hosts and hostgroups to verify membership Update API to version 2.3 https://fedorahosted.org/freeipa/ticket/1170 --- ipalib/plugins/hostgroup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/hostgroup.py') diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py index 71552344..4ffc2217 100644 --- a/ipalib/plugins/hostgroup.py +++ b/ipalib/plugins/hostgroup.py @@ -65,9 +65,9 @@ class hostgroup(LDAPObject): uuid_attribute = 'ipauniqueid' attribute_members = { 'member': ['host', 'hostgroup'], - 'memberof': ['hostgroup'], + 'memberof': ['hostgroup', 'hbacrule', 'sudorule'], 'memberindirect': ['host', 'hostgroup'], - 'memberofindirect': ['host', 'hostgroup'], + 'memberofindirect': ['host', 'hostgroup', 'hbacrule', 'sudorule'], } label = _('Host Groups') -- cgit