Пример #1
0
 def test_compare_fail(self):
     ld = LDAP(self.env['uri_389'])
     ld.bind(self.env['root_dn'], self.env['root_pw'])
     result = ld.compare(self.env['target_user'], self.compare_attribute,
                         'dummy')
     self.assertFalse(result)
Пример #2
0
 def test_compare_fail(self):
     ld = LDAP(self.env['uri_389'])
     ld.bind(self.env['root_dn'], self.env['root_pw'])
     result = ld.compare(self.env['modify_user'], self.compare_attribute, 'dummy')
     self.assertFalse(result)
Пример #3
0
 def test_compare(self):
     ld = LDAP(self.env['uri_389'])
     ld.bind(self.env['root_dn'], self.env['root_pw'])
     result = ld.compare(self.env['target_user'], self.compare_attribute,
                         self.compare_value)
     self.assertTrue(result)
Пример #4
0
 def test_compare(self):
     ld = LDAP(self.env['uri_389'])
     ld.bind(self.env['root_dn'], self.env['root_pw'])
     result = ld.compare(self.env['modify_user'], self.compare_attribute, self.compare_value)
     self.assertTrue(result)