Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equivalent of AUTH_LDAP_GROUP_SEARCH #259

Open
MikeEunLim opened this issue Feb 14, 2023 · 1 comment
Open

equivalent of AUTH_LDAP_GROUP_SEARCH #259

MikeEunLim opened this issue Feb 14, 2023 · 1 comment

Comments

@MikeEunLim
Copy link

MikeEunLim commented Feb 14, 2023

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?

@Shawn-Jemmott
Copy link

I would also like this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants