Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

salopensource/sal-ldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Sal-LDAP

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.

Usage

For full usage instructions for macadmins/sal, please see its repository.

Environment variables

  • SAL_LDAP_SERVER_URI: The URI of your LDAP server. Defaults to ldap://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 to true to use TLS. Defaults to false
  • SAL_LDAP_USER_ATTR: The ldap attribute to identify the user. Defaults to sAMAccountName - NOT WORKING, MUST EDIT SETTINGS.PY TO MAKE THIS CHANGE CURRENTLY
  • SAL_LDAP_LOGGING: Set to true to enable logging of requests for debugging. Defaults to false.