mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add function to retrieve a short list of attributes to make ipa-adddelegation
easier to use.
This commit is contained in:
@@ -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)."""
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user