Lines Matching refs:ldap_user
161 self.assertEqual(user.ldap_user.connection.get_option(ldap.OPT_REFERRALS), 0)
376 self.assertEqual(user1.ldap_user._username, "alice")
379 self.assertEqual(user2.ldap_user._username, "alice")
454 self.assertIsNotNone(user.ldap_user)
455 self.assertEqual(user.ldap_user.dn, "uid=alice,ou=people,o=test")
457 dict(user.ldap_user.attrs),
505 self.assertIsInstance(user.ldap_user.attrs, ldap.cidict.cidict)
606 ldap_user=user.ldap_user,
700 self.assertIs(query.resolve(alice.ldap_user), True)
714 self.assertIs(query.resolve(user.ldap_user), True)
728 self.assertIs(query.resolve(alice.ldap_user), False)
746 self.assertIs(query.resolve(alice.ldap_user), True)
747 self.assertIs(query.resolve(bob.ldap_user), True)
765 self.assertIs(query.resolve(alice.ldap_user), True)
766 self.assertIs(query.resolve(bob.ldap_user), False)
785 self.assertIs(query.resolve(alice.ldap_user), True)
786 self.assertIs(query.resolve(bob.ldap_user), True)
831 self.assertEqual(bob.ldap_user.group_names, {"other_gon"})
855 self.assertEqual(bob.ldap_user.group_names, {"other_gon"})
880 alice.ldap_user.group_dns,
898 alice.ldap_user.group_names,
1504 def authenticate_ldap_user(self, ldap_user, password): argument
1505 ldap_user.foo = "bar"
1506 return super().authenticate_ldap_user(ldap_user, password)
1510 self.assertEqual(user.ldap_user.foo, "bar")