Skip to content

KeyError upon LDAPConnection instantiation  #26

Description

@Synforge

When connecting to an LDAP server on a remote CentOS machine I receive the following error:

>>> import ldapom
>>> c = ldapom.LDAPConnection(uri='ldap://auth-1.example.io', base='dc=example,dc=io', bind_dn='cn=Manager,dc=example,dc=io', bind_password='password')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.3/dist-packages/ldapom/connection.py", line 110, in __init__
    self._connect()
  File "/usr/local/lib/python3.3/dist-packages/ldapom/connection.py", line 145, in _connect
    self._fetch_attribute_types()
  File "/usr/local/lib/python3.3/dist-packages/ldapom/connection.py", line 158, in _fetch_attribute_types
    attribute_type_definitions)
  File "/usr/local/lib/python3.3/dist-packages/ldapom/attribute.py", line 246, in build_attribute_types
    type_mixin = ATTRIBUTE_SYNTAX_TO_TYPE_MIXIN[type_dict["syntax"]]
KeyError: 'syntax'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions