summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2012-03-21 14:51:50 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2012-05-30 10:24:43 +0300
commit2fadf132fb12152979577d3656a4e9f527132f3c (patch)
tree22dbe566e9d1df9097c4e7f1580d564a0827769c /ipaserver
parent04a2a4530f1ec857e8100f68ec663b4767876e8d (diff)
downloadfreeipa-2fadf132fb12152979577d3656a4e9f527132f3c.tar.gz
freeipa-2fadf132fb12152979577d3656a4e9f527132f3c.tar.xz
freeipa-2fadf132fb12152979577d3656a4e9f527132f3c.zip
Use fully qualified PDC name when contacting for extended DN information
Diffstat (limited to 'ipaserver')
-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