You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a real connection, controls=[('2.16.840.1.113719.1.27.103.7', True, 'sn')] works perfectly. However, when using client_strategy=MOCK_SYNC, I am encountering the following error:
control = ('2.16.840.1.113719.1.27.103.7', True, 'sn')
@staticmethod
def decode_control(control):
"""
decode control, return a 2-element tuple where the first element is the control oid
and the second element is a dictionary with description (from Oids), criticality and decoded control value
"""
> control_type = str(control['controlType'])
E TypeError: tuple indices must be integers or slices, not str
.direnv/python-3.9/lib/python3.9/site-packages/ldap3/strategy/base.py:580: TypeError
It seems that the controls in the case of MOCK_SYNC are not passed through build_control or something?
The text was updated successfully, but these errors were encountered:
When using a real connection,
controls=[('2.16.840.1.113719.1.27.103.7', True, 'sn')]
works perfectly. However, when usingclient_strategy=MOCK_SYNC
, I am encountering the following error:It seems that the controls in the case of
MOCK_SYNC
are not passed throughbuild_control
or something?The text was updated successfully, but these errors were encountered: