summaryrefslogtreecommitdiffstats
path: root/ipatests/test_install
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-11-01 14:52:33 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-07 11:34:03 +0100
commit5b81dbfda1e4f0799d4ce87e9987a896af3ff299 (patch)
treebf0b256dec17a5e9ca7bacb414488cb0436aba49 /ipatests/test_install
parent4f1a6a177666c475156f496d3f7719b37e66a7b0 (diff)
downloadfreeipa-5b81dbfda1e4f0799d4ce87e9987a896af3ff299.tar.gz
freeipa-5b81dbfda1e4f0799d4ce87e9987a896af3ff299.tar.xz
freeipa-5b81dbfda1e4f0799d4ce87e9987a896af3ff299.zip
ipaldap: merge IPAdmin to LDAPClient
* move IPAdmin methods to LDAPClient * add extra arguments (cacert, sasl_nocanon) to LDAPClient.__init__() * add host, port, _protocol to LDAPClient (parsed from ldap_uri) * create get_ldap_uri() method to create ldap_uri from former IPAdmin.__init__() arguments * replace IPAdmin with LDAPClient + get_ldap_uri() * remove ununsed function argument hostname from enable_replication_version_checking() https://fedorahosted.org/freeipa/ticket/6461 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipatests/test_install')
-rw-r--r--ipatests/test_install/test_updates.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipatests/test_install/test_updates.py b/ipatests/test_install/test_updates.py
index 553788d2a..57433c99f 100644
--- a/ipatests/test_install/test_updates.py
+++ b/ipatests/test_install/test_updates.py
@@ -63,7 +63,8 @@ class test_update(unittest.TestCase):
else:
raise nose.SkipTest("No directory manager password")
self.updater = LDAPUpdate(dm_password=self.dm_password, sub_dict={})
- self.ld = ipaldap.IPAdmin(fqdn)
+ ldap_uri = ipaldap.get_ldap_uri(fqdn)
+ self.ld = ipaldap.LDAPClient(ldap_uri)
self.ld.simple_bind(bind_dn=ipaldap.DIRMAN_DN,
bind_password=self.dm_password)
self.testdir = os.path.abspath(os.path.dirname(__file__))