diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2014-02-26 17:59:05 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-02-27 11:52:09 +0100 |
commit | ff9be7f67a66e1c91011212d62c14e9946e2b151 (patch) | |
tree | 4210e37eb934a0d7cbf50f5d03b1cdcfa0048aad /ipalib/plugins/trust.py | |
parent | 61770269d436daa4152c5bb949499497320b2aee (diff) | |
download | freeipa-ff9be7f67a66e1c91011212d62c14e9946e2b151.tar.gz freeipa-ff9be7f67a66e1c91011212d62c14e9946e2b151.tar.xz freeipa-ff9be7f67a66e1c91011212d62c14e9946e2b151.zip |
trustdomain_find: make sure we skip short entries when --pkey-only is specified
With --pkey-only only primary key is returned. It makes no sense to check and
replace boolean values then.
https://fedorahosted.org/freeipa/ticket/4196
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipalib/plugins/trust.py')
-rw-r--r-- | ipalib/plugins/trust.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py index 5ab4b25fd..832230a11 100644 --- a/ipalib/plugins/trust.py +++ b/ipalib/plugins/trust.py @@ -1189,6 +1189,8 @@ class trustdomain_find(LDAPSearch): return (filters, base_dn, ldap.SCOPE_SUBTREE) def post_callback(self, ldap, entries, truncated, *args, **options): + if options.get('pkey_only', False): + return truncated trust_dn = self.obj.get_dn(args[0], trust_type=u'ad') trust_entry = ldap.get_entry(trust_dn) for entry in entries: |