mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
ipaserver/dcerpc.py: if search of a closest GC failed, try to find any GC
https://fedorahosted.org/freeipa/ticket/4458 Reviewed-By: Sumit Bose <sbose@redhat.com>
This commit is contained in:
parent
7fc4f60c2f
commit
3a8eeefe03
@ -589,7 +589,11 @@ class DomainValidator(object):
|
||||
try:
|
||||
result = netrc.finddc(domain=domain, flags=nbt.NBT_SERVER_LDAP | nbt.NBT_SERVER_GC | nbt.NBT_SERVER_CLOSEST)
|
||||
except RuntimeError, e:
|
||||
finddc_error = e
|
||||
try:
|
||||
# If search of closest GC failed, attempt to find any one
|
||||
result = netrc.finddc(domain=domain, flags=nbt.NBT_SERVER_LDAP | nbt.NBT_SERVER_GC)
|
||||
except RuntimeError, e:
|
||||
finddc_error = e
|
||||
|
||||
if not self._domains:
|
||||
self._domains = self.get_trusted_domains()
|
||||
|
Loading…
Reference in New Issue
Block a user