You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to the docker-compose.yml file, results in an error upon LDAP requests. The value ActiveDirectoryGroupType(name_attr="cn") is added to settings.py as a string and the proper import statement for the class ActiveDirectoryGroupType is missing.
Setting the following in docker-compose.yml solves the issue: ZULIP_CUSTOM_SETTINGS: 'from django_auth_ldap.config import ActiveDirectoryGroupType\nAUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType(name_attr="cn")'
I suggest adding rules to process AUTH_LDAP_GROUP_TYPE in entrypoint.sh and automatically import missing classes.
The text was updated successfully, but these errors were encountered:
All of these types may potentially be used by users of this settings
template, so it's handy to add them in. This avoids missing import
errors later.
This is an especially helpful change for the Zulip docker image, where
importing extra types is a bit annoying.
Fixeszulip/docker-zulip#252
To make LDAP group authentication for an Active Directory work, I have to add the following to the
settings.py
file:However, trying to add
to the
docker-compose.yml
file, results in an error upon LDAP requests. The valueActiveDirectoryGroupType(name_attr="cn")
is added tosettings.py
as a string and the proper import statement for the classActiveDirectoryGroupType
is missing.Setting the following in
docker-compose.yml
solves the issue:ZULIP_CUSTOM_SETTINGS: 'from django_auth_ldap.config import ActiveDirectoryGroupType\nAUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType(name_attr="cn")'
I suggest adding rules to process
AUTH_LDAP_GROUP_TYPE
inentrypoint.sh
and automatically import missing classes.The text was updated successfully, but these errors were encountered: