diff --git a/tests/test_BackendLdap.py b/tests/test_BackendLdap.py index 2474c96..ad54417 100644 --- a/tests/test_BackendLdap.py +++ b/tests/test_BackendLdap.py @@ -45,13 +45,13 @@ inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid') return True -# def testConnectSSLNoCheck(self): -# cfg2 = cfg.copy() -# cfg2['uri'] = 'ldaps://ldap.ldapcherry.org:637' -# cfg2['checkcert'] = 'off' -# inv = Backend(cfg2, cherrypy.log, 'ldap', attr, 'uid') -# ldap = inv._connect() -# ldap.simple_bind_s(inv.binddn, inv.bindpassword) + def testConnectSSLNoCheck(self): + cfg2 = cfg.copy() + cfg2['uri'] = 'ldaps://ldap.ldapcherry.org:637' + cfg2['checkcert'] = 'off' + inv = Backend(cfg2, cherrypy.log, 'ldap', attr, 'uid') + ldap = inv._connect() + ldap.simple_bind_s(inv.binddn, inv.bindpassword) def testConnect(self): inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')