Adding LDAP server to Indico's configuration failed

Having Indico ver 2.0 after migration from 1.2,
I added LDAP configuration by following steps from the manual:
https://docs.getindico.io/en/stable/config/auth/#ldap

The structure of LDAP configuration in indico.con is adapted to the structure of our LDAP server.

_ldap_config = {
    'uri': 'ldaps://our_server2.com:636',
    'bind_dn': 'cn=sync,dc=our_server,dc=com',
    'bind_password': '********',
    'timeout': 30,
    'verify_cert': True,
    'page_size': 5000,

    'uid': 'uid',
    'user_base': 'ou=People,dc=our_server,dc=com',
    'user_filter': '(objectClass=inetOrgPerson)',

    'gid': 'cn',
    'group_base': 'ou=groups,dc=our_server,DC=eu',
    'group_filter': '(objectClass=groupOfNames)',
    'member_of_attr': 'member',
#   'ad_group_style': True  # for Active Directory
    'ad_group_style': False # for OpenLDAP
}


AUTH_PROVIDERS = {
    'ldap': {
        'type': 'ldap',
        'title': 'LDAP',
        'ldap': _ldap_config,
        'default': True
    }
}

IDENTITY_PROVIDERS = {
    'ldap': {
        'type': 'ldap',
        'title': 'LDAP',
        'ldap': _ldap_config,
        'mapping': {
            'first_name': 'givenName',
            'last_name': 'sn',
            'email': 'mail',
            'affiliation': 'o',
            'address': 'postalAddress'
        },
        'trusted_email': True,
        'default_group_provider': True,
        'synced_fields': {'first_name', 'last_name', 'affiliation', 'address'}
    }
} 

When I restarted the testing VM then Indico’s log was filled with errors.

Please, analyse the log.
indico-celery.log (184.8 KB)
Thank you.

That error is unrelated to LDAP. Please upgrade to 2.2; some of the 2.0 dependencies are broken.

I upgraded from 2.0 to 2.2.4.
Then rebooted the testing VM and received other errors.

Please, check the log.
indico-celery_2.log (8.5 KB)

Thank you.

Have you run indico db upgrade?

I confirm that upgrading Indico database has solved the issue.

1 Like