Add function to retrieve a short list of attributes to make ipa-adddelegation

easier to use.
This commit is contained in:
Rob Crittenden
2008-01-04 16:39:41 -05:00
parent dd28d4e6f6
commit 1c4e4b3e14
6 changed files with 49 additions and 5 deletions

View File

@@ -1625,6 +1625,13 @@ class IPAServer:
return label_list
def get_all_attrs(self, opts=None):
"""We have a list of hardcoded attributes -> readable labels. Return
that complete list if someone wants it.
"""
return attrs.attr_label_list
def group_members(self, groupdn, attr_list, opts=None):
"""Do a memberOf search of groupdn and return the attributes in
attr_list (an empty list returns everything)."""

View File

@@ -358,6 +358,7 @@ def handler(req, profiling=False):
h.register_function(f.update_group)
h.register_function(f.delete_group)
h.register_function(f.attrs_to_labels)
h.register_function(f.get_all_attrs)
h.register_function(f.group_members)
h.register_function(f.get_ipa_config)
h.register_function(f.update_ipa_config)