From 05a897f3559e52e69cf2db6b93b3f7b56986ccbe Mon Sep 17 00:00:00 2001 From: kakwa Date: Wed, 17 Jun 2015 22:41:42 +0200 Subject: [PATCH] fix path to ca --- tests/test_BackendLdap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_BackendLdap.py b/tests/test_BackendLdap.py index ad54417..4b2a561 100644 --- a/tests/test_BackendLdap.py +++ b/tests/test_BackendLdap.py @@ -20,7 +20,7 @@ cfg = { 'binddn' : 'cn=dnscherry,dc=example,dc=org', 'password' : 'password', 'uri' : 'ldap://ldap.dnscherry.org:390', -'ca' : './tests/test_env/etc/ldapcherry/TEST-cacert.pem', +'ca' : './test/cfg/ca.crt', 'starttls' : 'off', 'checkcert' : 'off', 'user_filter_tmpl' : '(uid=%(username)s)', @@ -71,7 +71,6 @@ class TestError(object): cfg2 = cfg.copy() cfg2['uri'] = 'ldaps://notaldap:637' cfg2['checkcert'] = 'on' - cfg2['ca'] = './cfg/ca.crt' inv = Backend(cfg2, cherrypy.log, 'ldap', attr, 'uid') ldapc = inv._connect() try: @@ -85,7 +84,7 @@ class TestError(object): cfg2 = cfg.copy() cfg2['uri'] = 'ldaps://ldap.ldapcherry.org:637' cfg2['checkcert'] = 'on' - cfg2['ca'] = './cfg/wrong_ca.crt' + cfg2['ca'] = './test/cfg/wrong_ca.crt' inv = Backend(cfg2, cherrypy.log, 'ldap', attr, 'uid') ldapc = inv._connect() try: