Help with Authentication Indico 2.3

Getting the Error

TypeError: __init__() got an unexpected keyword argument 'bytes_mode'

after the update when try to login with ldap, didint find a solution int he documentation…


_ldap_config = {
    'uri': 'ldaps://SERVER:636',
    'bind_dn': 'CN=BLA,CN=Users,DC=DOMAIN',
    'bind_password': 'Password',
    'timeout': 30,
    'useTLS': True,
    'verify_cert': False,
    'starttls': False,
    'page_size': 1000,

    'uid': 'cn',
    'user_base': 'OU=BLA,DC=DOMAIN',
    'user_filter': '(mail=*)',

    'gid': 'cn',
    'group_base': 'OU=BLA,DC=DOMAIN',,
    'group_filter': '(objectCategory=group)',
    'member_of_attr': 'memberOf',
    'ad_group_style': True,

AuthProviders = {
    'ldap': {
        'type': 'ldap',
        'title': 'employee account (LDAP)',
        'ldap': _ldap_config,
        'default': True

IdentityProviders = {
    'ldap': {
        'type': 'ldap',
        'title': 'DKFZ (LDAP)',
        'ldap': _ldap_config,
        'mapping': {
            'first_name': 'givenName',
            'last_name': 'sn',
            'email': 'mail',
            'affiliation': 'company',
        'trusted_email': True,
        'default_group_provider': True,
        'synced_fields': {'first_name', 'last_name', 'affiliation'}


pip install -U python-ldap

I had the same problem earlier today when updating the sandbox instance… forgot to require a minimum version of python-ldap in flask-multipass :confused:

1 Like

Jup its fixed the error :smiley: :heart_eyes:

I searched the flash-multiplass documentation and tried to find out why the SSO changes affected me ^^