From 27517c2008d040f340fa2b9ace51fba4baea3eef Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 21 Mar 2012 14:51:50 +0200 Subject: Use fully qualified PDC name when contacting for extended DN information --- ipaserver/dcerpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/dcerpc.py') 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 -- cgit