From 84cccddd3ab0354663c698b6d0629da05604cfe4 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Mon, 6 Sep 2021 13:56:47 +0200 Subject: [PATCH] fix LDAP and SQL backend for sogo --- charts/incubator/sogo/Chart.yaml | 2 +- charts/incubator/sogo/templates/_config.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/incubator/sogo/Chart.yaml b/charts/incubator/sogo/Chart.yaml index 92d4ca2c9df..56c505e64e8 100644 --- a/charts/incubator/sogo/Chart.yaml +++ b/charts/incubator/sogo/Chart.yaml @@ -27,4 +27,4 @@ name: sogo sources: - https://www.sogo.nu/ type: application -version: 0.0.3 +version: 0.0.4 diff --git a/charts/incubator/sogo/templates/_config.tpl b/charts/incubator/sogo/templates/_config.tpl index 3430ac78c0e..8119d7de08f 100644 --- a/charts/incubator/sogo/templates/_config.tpl +++ b/charts/incubator/sogo/templates/_config.tpl @@ -85,8 +85,8 @@ data: SOGoUserSources = ( {{- range $index, $value := .Values.sogo.usersources }} { - type = {{ $value.type | default "ldap" }}; - {{- if eq $value.type "ldap" }} + type = {{ $value.type | default "LDAP" }}; + {{- if eq $value.type "LDAP" }} CNFieldName = {{ $value.CNFieldName | default "cn" }}; UIDFieldName = {{ $value.UIDFieldName | default "uid" }}; IDFieldName = {{ $value.IDFieldName | default "uid" }}; // first field of the DN for direct binds @@ -99,7 +99,7 @@ data: hostname = {{ $value.hostname | default "ldap://127.0.0.1:389" }}; id = {{ $value.id | default "public" }}; isAddressBook = {{ if $value.isAddressBook }}"YES"{{ else }}"NO"{{ end }}; - {{- else if eq $value.type "sql" }} + {{- else if eq $value.type "SQL" }} id = {{ $value.sql.id | default "directory" }}; viewURL = {{ ( $value.sql.viewURL | default "postgresql://sogo:sogo@127.0.0.1:5432/sogo/sogo_view" ) | quote }}; canAuthenticate = {{ if $value.sql.canAuthenticate }}"YES"{{ else }}"NO"{{ end }};