fix: add missing Kerberos configuration and refactor misleading names.
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ password = os.environ.get("LDAP_PASSWORD") or "changeit"
|
||||
tls_enabled = os.environ.get("TLS_ENABLED") == "1"
|
||||
kerberos_enabled = os.environ.get("KERBEROS_ENABLE") == "1"
|
||||
krb5_realm = os.environ.get("KRB5_REALM", "")
|
||||
krb5_sasl_host = os.environ.get("KRB5_SASL_HOST", "")
|
||||
ldap_hostname = os.environ.get("LDAP_HOSTNAME", "")
|
||||
admin_dn = f"cn=admin,{base_dn}"
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ def main():
|
||||
apply_ldif(LDIF_DIR / "config-tls.ldif", env)
|
||||
if kerberos_enabled:
|
||||
apply_ldif(LDIF_DIR / "config-sasl.ldif", env,
|
||||
base_dn=base_dn, krb5_realm=krb5_realm, sasl_host=krb5_sasl_host)
|
||||
base_dn=base_dn, krb5_realm=krb5_realm, ldap_hostname=ldap_hostname)
|
||||
|
||||
print("cn=config updated.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user