Example #1
0
 def testAuthFailure(self):
     inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
     res = inv.auth('notauser', 'password') or inv.auth(
         u'jwatsoné', 'notapasswordé')
     assert res == False
Example #2
0
 def testAuthFailure(self):
     inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
     res = inv.auth('notauser', 'password') or inv.auth(u'jwatsoné', 'notapasswordé')
     assert res == False
Example #3
0
 def testAuthSuccess(self):
     inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
     ret = inv.auth(u'jwatsoné', u'passwordwatsoné')
     assert ret == True
Example #4
0
 def testAuthSuccess(self):
     inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
     ret = inv.auth(u'jwatsoné', u'passwordwatsoné')
     assert ret == True