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…
AUTHENTICATION
_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'}
}
: