Error on connection bind pyasn1 version 0.4.8 and 0.4.6
shashanksriva opened this issue · 0 comments
shashanksriva commented
Below error is seen in the logs while connection binding. I am using ldap3 module to establish connection with LDAP server.
raise error.PyAsn1Error('Attempted "%s" operation on ASN.1 schema object' % name)
pyasn1.error.PyAsn1Error: Attempted "index" operation on ASN.1 schema object
Code snippet:
ldap_client = Server(ldap_server, get_info=ALL)
conn = Connection(ldap_client, user=ldap_username, password=ldap_password)
conn.bind()