Update environment variables for consistency and defaults in init.py and env.example
This commit is contained in:
@@ -14,8 +14,8 @@ INITIALIZED_FLAG = Path("/var/lib/ldap/.initialized")
|
||||
SLAPD_D = Path("/etc/ldap/slapd.d")
|
||||
|
||||
|
||||
base_dn = os.environ["LDAP_BASE_DN"]
|
||||
password = os.environ["LDAP_PASSWORD"]
|
||||
base_dn = os.environ.get("LDAP_BASE_DN") or "dc=example,dc=org"
|
||||
password = os.environ.get("LDAP_PASSWORD") or "changeit"
|
||||
tls_enabled = os.environ.get("TLS_ENABLED") == "1"
|
||||
admin_dn = f"cn=admin,{base_dn}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user