AUTH_LDAP_GROUP_SEARCH = LDAPSearch(
"OU=django,OU=Groups,DC=company,DC=local",
ldap.SCOPE_SUBTREE,
"(objectClass=group)",
)
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
"is_active": "CN=django_active,OU=django,OU=Groups,DC=company,DC=local",
"is_staff": "CN=django_staff,OU=django,OU=Groups,DC=company,DC=local",
"is_superuser": "CN=django_superuser,OU=django,OU=Groups,DC=company,DC=local",
}
any example of auto assign "is_Staff" based on group?