mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Don't return SSH keys with ipa host-find --pkey-only
This was introduced in 14ee02dcbd
https://pagure.io/freeipa/issue/8029
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
9a440ae885
commit
73c32dbfeb
@@ -1061,7 +1061,8 @@ class host_find(LDAPSearch):
|
||||
(filter, hosts_filter), ldap.MATCH_ALL
|
||||
)
|
||||
|
||||
add_sshpubkey_to_attrs_pre(self.context, attrs_list)
|
||||
if not options.get('pkey_only', False):
|
||||
add_sshpubkey_to_attrs_pre(self.context, attrs_list)
|
||||
|
||||
return (filter.replace('locality', 'l'), base_dn, scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user