diff options
author | Jan Cholasta <jcholast@redhat.com> | 2011-09-30 10:09:55 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-10-05 10:58:42 +0200 |
commit | 087251c88b3a6da9c2b6953bf21188a31d8f9d37 (patch) | |
tree | f10137f22a27f03d02b4594f0d31c7df1e17a464 /tests | |
parent | 49de0c0575ac9ba224b2a06b961cf848089ab574 (diff) | |
download | freeipa-087251c88b3a6da9c2b6953bf21188a31d8f9d37.tar.gz freeipa-087251c88b3a6da9c2b6953bf21188a31d8f9d37.tar.xz freeipa-087251c88b3a6da9c2b6953bf21188a31d8f9d37.zip |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipaserver/test_ldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ipaserver/test_ldap.py b/tests/test_ipaserver/test_ldap.py index 568a37acd..b3f8009f9 100644 --- a/tests/test_ipaserver/test_ldap.py +++ b/tests/test_ipaserver/test_ldap.py @@ -42,7 +42,7 @@ class test_ldap(object): def setUp(self): self.conn = None - self.ldapuri = 'ldap://%s' % api.env.host + self.ldapuri = 'ldap://%s' % ipautil.format_netloc(api.env.host) self.ccache = '/tmp/krb5cc_%d' % os.getuid() nss.nss_init_nodb() self.dn = str(DN(('krbprincipalname','ldap/%s@%s' % (api.env.host, api.env.realm)), |