diff options
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r-- | ipalib/plugins/baseldap.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 2b0ff2d73..11fd18ee9 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -569,7 +569,8 @@ class LDAPModMember(LDAPQuery): ldap_obj = self.api.Object[ldap_obj_name] name = to_cli(ldap_obj_name) doc = self.member_param_doc % ldap_obj.object_name_plural - yield List('%s?' % name, cli_name='%ss' % name, doc=doc) + yield List('%s?' % name, cli_name='%ss' % name, doc=doc, + label=ldap_obj.object_name_plural) def get_member_dns(self, **options): dns = {} @@ -610,6 +611,12 @@ class LDAPAddMember(LDAPModMember): ), ) + has_output_params = ( + Str('member', + label=_('Failed members'), + ), + ) + def execute(self, *keys, **options): ldap = self.obj.backend @@ -699,13 +706,19 @@ class LDAPRemoveMember(LDAPModMember): has_output = ( output.Entry('result'), + output.Output('failed', + type=dict, + doc=_('Members that could not be removed'), + ), output.Output('completed', type=int, doc=_('Number of members removed'), ), - output.Output('failed', - type=dict, - doc=_('Members that could not be removed'), + ) + + has_output_params = ( + Str('member', + label=_('Failed members'), ), ) |