diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-10-28 15:26:12 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-12-24 04:09:29 +0100 |
commit | bdb03c52296ba2af20c2d8c1bd0f017d9f01b9cc (patch) | |
tree | 8c1a602abc98546a61edcf2336c36592dee4ff1a /source4/dsdb | |
parent | 9ac5e3cf30c62d4a83122e5b9c1b3ef253f126e8 (diff) | |
download | samba-bdb03c52296ba2af20c2d8c1bd0f017d9f01b9cc.tar.gz |
selftest: Allow sites test to run against a remote ldap:// host
The previous code was just broken
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/dsdb')
-rwxr-xr-x | source4/dsdb/tests/python/sites.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/dsdb/tests/python/sites.py b/source4/dsdb/tests/python/sites.py index 912dfc43c26..71725bffa45 100755 --- a/source4/dsdb/tests/python/sites.py +++ b/source4/dsdb/tests/python/sites.py @@ -52,11 +52,8 @@ if len(args) < 1: host = args[0] if not "://" in host: ldaphost = "ldap://%s" % host - ldapshost = "ldaps://%s" % host else: ldaphost = host - start = host.rindex("://") - host = host.lstrip(start+3) lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp) @@ -69,7 +66,7 @@ class SitesBaseTests(samba.tests.TestCase): def setUp(self): super(SitesBaseTests, self).setUp() - self.ldb = SamDB(ldapshost, credentials=creds, + self.ldb = SamDB(ldaphost, credentials=creds, session_info=system_session(lp), lp=lp) self.base_dn = self.ldb.domain_dn() self.domain_sid = security.dom_sid(self.ldb.get_domain_sid()) |