예제 #1
0
 def test_wrong_pwd(self):
     """
     Wrong password is provided, authentication should fail.
     """
     self.assertFalse(cc_ldap.auth_user(self.ldap_config,
                                        'user2',
                                        'wrong_password'))
예제 #2
0
 def test_successful_auth(self):
     """
     Successful user authentication.
     """
     self.assertTrue(cc_ldap.auth_user(self.ldap_config,
                                       'user2',
                                       'user2pw'))
예제 #3
0
 def test_empty_pwd(self):
     """
     Try to authenticate with empty password.
     """
     self.assertFalse(cc_ldap.auth_user(self.ldap_config, 'user2', ''))
예제 #4
0
 def test_missing_pwd(self):
     """
     Password is missing when auth_user function is called.
     """
     self.assertFalse(cc_ldap.auth_user(self.ldap_config, 'user2'))
예제 #5
0
 def test_empty_pwd(self):
     """
     Try to authenticate with empty password.
     """
     self.assertFalse(cc_ldap.auth_user(self.ldap_config, 'user2', ''))
예제 #6
0
 def test_missing_pwd(self):
     """
     Password is missing when auth_user function is called.
     """
     self.assertFalse(cc_ldap.auth_user(self.ldap_config, 'user2'))