LDAP auth using Onelogin VLDAP

Hello,
i’m trying to use my Onelogin VLDAP to access django admin page via django_auth_ldap.
Users can bind and are created in django(if i remove AUTH_LDAP_USER_FLAGS_BY_GROUP from the configuration) but everything related to groups doesn’t work, i keep getting this error in the log:

caught LDAPError while authenticating user1@company.net: OTHER({‘msgtype’: 111, ‘msgid’: 3, ‘result’: 80, ‘desc’: ‘Other (e.g., implementation specific) error’, ‘ctrls’: , ‘matched’: ‘cn=django_staff,ou=roles,dc=company,dc=onelogin,dc=com’, ‘info’: ‘Server method not implemented’})

this is my configuration:
# - - - - LDAP CONFIGURATION - - - - #

import ldap
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType, LDAPGroupQuery, PosixGroupType

AUTH_LDAP_SERVER_URI = ‘ldaps://ldap.us.onelogin.com’
AUTH_LDAP_USER_SEARCH = LDAPSearch(
‘ou=users,dc=company,dc=onelogin,dc=com’,
ldap.SCOPE_SUBTREE,
‘(cn=%(user)s)’,
)

AUTH_LDAP_USER_DN_TEMPLATE = ‘cn=%(user)s,ou=users,dc=company,dc=onelogin,dc=com’
AUTH_LDAP_GROUP_BASE = ‘ou=roles,dc=company,dc=onelogin,dc=com’
AUTH_LDAP_GROUP_FILTER = ‘(objectClass=GroupOfNames)’
AUTH_LDAP_GROUP_SEARCH = LDAPSearch(AUTH_LDAP_GROUP_BASE,
ldap.SCOPE_SUBTREE,AUTH_LDAP_GROUP_FILTER)
AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()

AUTH_LDAP_BIND_AS_AUTHENTICATING_USER = True

AUTH_LDAP_USER_ATTR_MAP = {
‘first_name’: ‘givenName’,
‘last_name’: ‘sn’,
‘email’: ‘mail’,
}

AUTH_LDAP_USER_FLAGS_BY_GROUP = {
‘is_active’:‘cn=django_active,ou=roles,dc=company,dc=onelogin,dc=com’,
‘is_staff’: ‘cn=django_staff,ou=roles,dc=company,dc=onelogin,dc=com’,
‘is_superuser’: ‘cn=django_superuser,ou=roles,dc=company,dc=onelogin,dc=com’,
}

AUTH_LDAP_ALWAYS_UPDATE_USER = True
AUTH_LDAP_FIND_GROUP_PERMS = True

AUTHENTICATION_BACKENDS = (
‘django_auth_ldap.backend.LDAPBackend’,
‘django.contrib.auth.backends.ModelBackend’,
)

and this is an ldapsearch of the django_active group:
ldapsearch -H ldaps://ldap.us.onelogin.com:636 -D “cn=user1@company.net,ou=users,dc=company,dc=onelogin,dc=com” -W -s base -b “ou=roles, dc=company, dc=onelogin, dc=com” “(cn=django_active)”
Enter LDAP Password:
extended LDIF

LDAPv3
base <ou=roles, dc=company, dc=onelogin, dc=com> with scope baseObject
filter: (cn=django_active)
requesting: ALL

django_active, roles, companyonelogincom
dn: cn=django_active,ou=roles,dc=company,dc=onelogin,dc=com
cn: django_active
member: cn=user1@company.net,ou=users,dc=company,dc=onelogin,dc=com
gidNumber: 561904
objectClass: groupOfNames
objectClass: posixGroup

search result
search: 2
result: 0 Success

numResponses: 2
numEntries: 1

thank you for your help