We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5b1e1 commit 014a74fCopy full SHA for 014a74f
Tests/t_cext.py
@@ -676,6 +676,22 @@ def test_errno107(self):
676
else:
677
self.fail("expected SERVER_DOWN, got %r" % r)
678
679
+ def test_invalid_filter(self):
680
+ l = self._open_conn(bind=False)
681
+ # search with invalid filter
682
+ try:
683
+ m = l.search_ext(
684
+ "",
685
+ _ldap.SCOPE_BASE,
686
+ '(|(objectClass=*)',
687
+ )
688
+ self.assertEqual(type(m), type(0))
689
+ r = l.result4(m, _ldap.MSG_ALL, self.timeout)
690
+ except _ldap.FILTER_ERROR:
691
+ pass
692
+ else:
693
+ self.fail("expected FILTER_ERROR, got %r" % r)
694
+
695
696
if __name__ == '__main__':
697
unittest.main()
0 commit comments