diff options
Diffstat (limited to 'tests/test_ipaserver')
-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 299d439f..568a37ac 100644 --- a/tests/test_ipaserver/test_ldap.py +++ b/tests/test_ipaserver/test_ldap.py @@ -33,6 +33,7 @@ from ipalib.plugins.host import host import nss.nss as nss from ipalib import api, x509, create_api from ipapython import ipautil +from ipalib.dn import * class test_ldap(object): """ @@ -44,7 +45,8 @@ class test_ldap(object): self.ldapuri = 'ldap://%s' % api.env.host self.ccache = '/tmp/krb5cc_%d' % os.getuid() nss.nss_init_nodb() - self.dn = 'krbprincipalname=ldap/%s@%s,cn=services,cn=accounts,%s' % (api.env.host, api.env.realm, api.env.basedn) + self.dn = str(DN(('krbprincipalname','ldap/%s@%s' % (api.env.host, api.env.realm)), + ('cn','services'),('cn','accounts'),api.env.basedn)) def tearDown(self): if self.conn: |