Hi ,
Everytime the user is logged in the role is based on the AUTH_USER_REGISTRATION_ROLE . ROLES_MAPPING is not working . Can any one help ?
My role mapping is as below :
AUTH_LDAP_SERVER = ‘ldap://ad.xxxx.xxx:389’
AUTH_LDAP_SEARCH = ‘dc=xxxxx,dc=com’
AUTH_LDAP_BIND_USER = ‘kxxxxxxx@lxxx.com’
AUTH_LDAP_BIND_PASSWORD = ‘xxxxxxxxxx’
AUTH_LDAP_UID_FIELD = ‘sAMAccountName’
AUTH_ROLES_MAPPING = {
“cn=adxxxxuser,ou=Groups,ou=Corporate,dc=xxx,dc=xxx”: [“User”],
“cn=adxxxxadm,ou=Groups,ou=Corporate,dc=lowes,dc=xxx”: [“Admin”],
}
AUTH_LDAP_GROUP_FIELD = ‘memberOf’
Where am i doing wrong ?