summaryrefslogtreecommitdiffstats
path: root/ipaserver/dcerpc.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2012-03-21 14:51:50 +0200
committerMartin Kosek <mkosek@redhat.com>2012-06-07 09:39:09 +0200
commit27517c2008d040f340fa2b9ace51fba4baea3eef (patch)
tree6a17043a7562da7b4b866ce108d3960808c1d3f6 /ipaserver/dcerpc.py
parenta7420c1e83e22a2d441804a7cc5bcf3815a89e47 (diff)
downloadfreeipa-27517c2008d040f340fa2b9ace51fba4baea3eef.tar.gz
freeipa-27517c2008d040f340fa2b9ace51fba4baea3eef.tar.xz
freeipa-27517c2008d040f340fa2b9ace51fba4baea3eef.zip
Use fully qualified PDC name when contacting for extended DN information
Diffstat (limited to 'ipaserver/dcerpc.py')
-rw-r--r--ipaserver/dcerpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
index 7aac1caea..e6162c7d9 100644
--- a/ipaserver/dcerpc.py
+++ b/ipaserver/dcerpc.py
@@ -135,7 +135,7 @@ class TrustDomainInstance(object):
# Netlogon response doesn't contain SID of the domain.
# We need to do rootDSE search with LDAP_SERVER_EXTENDED_DN_OID control to reveal the SID
- ldap_uri = 'ldap://%s' % (result.pdc_name)
+ ldap_uri = 'ldap://%s' % (result.pdc_dns_name)
conn = _ldap.initialize(ldap_uri)
conn.set_option(_ldap.OPT_SERVER_CONTROLS, [ExtendedDNControl()])
result = None