From 12bfed37d4d22319e2cfadb5d9b460da7e748432 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Fri, 30 Sep 2011 10:09:55 +0200 Subject: Add a function for formatting network locations of the form host:port for use in URLs. If the host part is a literal IPv6 address, it must be enclosed in square brackets (RFC 2732). ticket 1869 --- ipaserver/install/dsinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install/dsinstance.py') diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 790b560b..f2b16dfe 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -112,7 +112,7 @@ def is_ds_running(): def has_managed_entries(host_name, dm_password): """Check to see if the Managed Entries plugin is available""" - ldapuri = 'ldap://%s' % host_name + ldapuri = 'ldap://%s' % ipautil.format_netloc(host_name) conn = None try: conn = ldap2(shared_instance=False, ldap_uri=ldapuri, base_dn='cn=config') -- cgit