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 d92435d commit 60bbb27Copy full SHA for 60bbb27
Tests/t_cext.py
@@ -692,6 +692,17 @@ def test_invalid_filter(self):
692
else:
693
self.fail("expected FILTER_ERROR, got %r" % r)
694
695
+ def test_invalid_credentials(self):
696
+ l = self._open_conn(bind=False)
697
+ # search with invalid filter
698
+ try:
699
+ m = l.simple_bind(self.server.root_dn, self.server.root_pw+'wrong')
700
+ r = l.result4(m, _ldap.MSG_ALL, self.timeout)
701
+ except _ldap.INVALID_CREDENTIALS:
702
+ pass
703
+ else:
704
+ self.fail("expected INVALID_CREDENTIALS, got %r" % r)
705
+
706
707
if __name__ == '__main__':
708
unittest.main()
0 commit comments