diff options
Diffstat (limited to 'ipa-python/rpcclient.py')
-rw-r--r-- | ipa-python/rpcclient.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-python/rpcclient.py b/ipa-python/rpcclient.py index c993ac991..32249fd3c 100644 --- a/ipa-python/rpcclient.py +++ b/ipa-python/rpcclient.py @@ -579,6 +579,21 @@ class RPCClient: return ipautil.unwrap_binary_data(result) + def get_all_attrs(self, opts=None): + """We have a list of hardcoded attributes -> readable labels. Return + that complete list if someone wants it. + """ + + server = self.setup_server() + try: + result = server.get_all_attrs() + except xmlrpclib.Fault, fault: + raise ipaerror.gen_exception(fault.faultCode, fault.faultString) + except socket.error, (value, msg): + raise xmlrpclib.Fault(value, msg) + + return ipautil.unwrap_binary_data(result) + def group_members(self, groupdn, attr_list=None): """Do a memberOf search of groupdn and return the attributes in attr_list (an empty list returns everything).""" |