Patch Portunus to allow using both insecure ldap and ldaps at once

This commit is contained in:
Lyn Fugmann 2023-07-23 22:28:16 +02:00 committed by Rouven Seifert
parent c992331bbd
commit 11be7f44c1
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,13 @@
diff --git a/cmd/orchestrator/ldap.go b/cmd/orchestrator/ldap.go
index ed0d466..a672046 100644
--- a/cmd/orchestrator/ldap.go
+++ b/cmd/orchestrator/ldap.go
@@ -130,7 +130,7 @@ func runLDAPServer(environment map[string]string) {
bindURL := "ldap:///"
if environment["PORTUNUS_SLAPD_TLS_CERTIFICATE"] != "" {
- bindURL = "ldaps:///"
+ bindURL = "ldap:/// ldaps:///"
}
logg.Info("starting LDAP server")