mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
dcerpc: Raise ACIError correctly
Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
6a91893ff5
commit
e8ff6a3ef6
@ -1038,9 +1038,11 @@ class TrustDomainInstance(object):
|
||||
if self.validation_attempts < 10:
|
||||
sleep(5)
|
||||
return self.verify_trust(another_domain)
|
||||
raise errors.ACIError(reason=_('IPA master denied trust validation requests from AD DC '
|
||||
'%(count)d times. Most likely AD DC contacted a replica '
|
||||
'that has no trust information replicated yet.' % (self.validation_attempts)))
|
||||
raise errors.ACIError(
|
||||
info=_('IPA master denied trust validation requests from AD DC '
|
||||
'%(count)d times. Most likely AD DC contacted a replica '
|
||||
'that has no trust information replicated yet.')
|
||||
% dict(count=self.validation_attempts))
|
||||
raise assess_dcerpc_exception(*result.pdc_connection_status)
|
||||
return True
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user