Update environment variables for consistency and defaults in init.py and env.example

This commit is contained in:
slawek committed 2026-05-04 07:46:58 +02:00
1 parent fab0f268d3
commit bf35cced8c
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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}"