etianen / etianen/django-python3-ldap

equivalent of AUTH_LDAP_GROUP_SEARCH

Open
#259 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
428
Forks
122
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.