This code is archived and is left here for historical purposes. It should not be used in production in it's current state.
This image expanded on Sal and allowed it to leverage LDAP authentication. There were numerous customizations that were necessary - this image is in use and working for several AD environments, but may not 100% work in yours. You should mount your own settings.py
in the container, at least while figuring out what options you need. This image uses django-auth-ldap to connect to LDAP, so please refer to the documentation there if you need more details on the configuration options.
For full usage instructions for macadmins/sal, please see its repository.
SAL_LDAP_SERVER_URI
: The URI of your LDAP server. Defaults toldap://ldap
SAL_LDAP_BIND_DN
: The distinguished name of your bind account.SAL_LDAP_BIND_PASSWORD
: The password for your bind account.SAL_LDAP_USER_SEARCH
: The search path for users.SAL_LDAP_GROUP_SEARCH
: The search path for groups.SAL_LDAP_REQUIRE_GROUP
: A group object to restrict login to.SAL_LDAP_START_TLS
: Set totrue
to use TLS. Defaults tofalse
SAL_LDAP_USER_ATTR
: The ldap attribute to identify the user. Defaults tosAMAccountName
- NOT WORKING, MUST EDITSETTINGS.PY
TO MAKE THIS CHANGE CURRENTLYSAL_LDAP_LOGGING
: Set totrue
to enable logging of requests for debugging. Defaults tofalse
.