Exemplo n.º 1
0
 def post_common_callback(self, ldap, entries, lockout=False, **options):
     for attrs in entries:
         self.obj.convert_usercertificate_post(attrs, **options)
         if (lockout):
             attrs['nsaccountlock'] = True
         else:
             convert_nsaccountlock(attrs)
         convert_sshpubkey_post(attrs)
     remove_sshpubkey_from_output_list_post(self.context, entries)
Exemplo n.º 2
0
    def post_callback(self, ldap, entries, truncated, *args, **options):
        if options.get('pkey_only', False):
            return truncated
        for entry_attrs in entries:
            set_certificate_attrs(entry_attrs)
            set_kerberos_attrs(entry_attrs, options)
            rename_ipaallowedtoperform_from_ldap(entry_attrs, options)
            self.obj.suppress_netgroup_memberof(ldap, entry_attrs)

            if options.get('all', False):
                entry_attrs['managing'] = self.obj.get_managed_hosts(entry_attrs.dn)

            convert_sshpubkey_post(entry_attrs)
            remove_sshpubkey_from_output_post(self.context, entry_attrs)
            convert_ipaassignedidview_post(entry_attrs, options)

        remove_sshpubkey_from_output_list_post(self.context, entries)

        return truncated