diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-09-30 17:49:32 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-10-01 13:42:32 -0400 |
commit | 88bd2a0a45434ee2cb38fb60a62e37c2538d3007 (patch) | |
tree | 61283b17e38e959be290e4759c1ece4bc0d4f43d /tests | |
parent | 25848ed17315937f0daabf710b1c92e6f794a725 (diff) | |
download | freeipa-88bd2a0a45434ee2cb38fb60a62e37c2538d3007.tar.gz freeipa-88bd2a0a45434ee2cb38fb60a62e37c2538d3007.tar.xz freeipa-88bd2a0a45434ee2cb38fb60a62e37c2538d3007.zip |
Fix LDAP client backend failing test case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipaserver/test_ldap.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_ipaserver/test_ldap.py b/tests/test_ipaserver/test_ldap.py index 464fc3e8..713f8707 100644 --- a/tests/test_ipaserver/test_ldap.py +++ b/tests/test_ipaserver/test_ldap.py @@ -29,6 +29,7 @@ import nose import os from ipaserver.plugins.ldap2 import ldap2 from ipalib.plugins.service import service, service_show +from ipalib.plugins.host import host import nss.nss as nss from ipalib import api, x509, create_api from ipapython import ipautil @@ -105,12 +106,13 @@ class test_ldap(object): myapi = create_api(mode=None) myapi.bootstrap(context='cli', in_server=True, in_tree=True) myapi.register(ldap2) + myapi.register(host) myapi.register(service) myapi.register(service_show) myapi.finalize() myapi.Backend.ldap2.connect(bind_dn="cn=Directory Manager", bind_pw='password') - result = myapi.Command['service_show']('ldap/%s@%s' % (myapi.env.host, myapi.env.realm,)) + result = myapi.Command['service_show']('ldap/%s@%s' % (api.env.host, api.env.realm,)) entry_attrs = result['result'] cert = entry_attrs.get('usercertificate') cert = cert[0] |