-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Security
-
ALL
-
Security 2024-07-22, Security 2024-08-05, Security 2024-08-19, Security 2024-09-02, Security 2024-09-16, Security 2024-09-30, Security 2024-10-14, Security 2024-10-28, Security 2024-11-11, Security 2024-11-25, Security 2024-12-09, Security 2024-12-23, Security 2025-01-20, RnD Security 2025-03-03, Security 2025-03-17, Security 2025-03-31
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
When the mock server receives invalid credentials for binding it produces an unexpected error:
2024-07-12 00:20:45+0000 [MockLDAPServer,9,127.0.0.1] Handled bind request: LDAPBindRequest(version=3, dn=b'cn=ldapz_ldap2,ou=Users,dc=10gen,dc=cc', auth=b'Admin001', sasl=False) locally, reply is <Deferred at 0x7f73b3e60e50 current result: <twisted.python.failure.Failure ldaptor.protocols.ldap.ldaperrors.LDAPInvalidCredentials: <LDAPInvalidCredentials instance at 0x7f73b3e88100 with str error: [js_test:ldap_runtime_configuration] sh17970| Traceback (most recent call last): [js_test:ldap_runtime_configuration] sh17970| File "/data/mci/a819b3f9ba8b4d701468d9c99effc288/venv/lib/python3.10/site-packages/twisted/python/reflect.py", line 433, in safe_str [js_test:ldap_runtime_configuration] sh17970| return str(o) [js_test:ldap_runtime_configuration] sh17970| TypeError: _str_ returned non-string (type bytes) [js_test:ldap_runtime_configuration] sh17970| >>>
Apart from this outputted log, tests do NOT seem to be affected by this.
This started happening when twisted was updated to the latest version.