Skip to content

Commit

Permalink
Support insecure LDAP sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DebakelOrakel committed Sep 16, 2024
1 parent aa3796d commit 1d85844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion component/ldap.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ local syncConfig(namespace, idp, sa) =
idp.ldap.bindPassword
else
params.secrets[idp.ldap.bindPassword.name].bindPassword,
ca: ca_mount + files.caBundle,
[if std.objectHas(idp.ldap.sync, 'insecure') then 'insecure']: true,
[if !std.get(idp.ldap.sync, 'insecure', false) then 'ca']: ca_mount + files.caBundle,
[if std.objectHas(idp.ldap.sync, 'rfc2307') then 'rfc2307']: idp.ldap.sync.rfc2307,
[if std.objectHas(idp.ldap.sync, 'activeDirectory') then 'activeDirectory']: idp.ldap.sync.activeDirectory,
[if std.objectHas(idp.ldap.sync, 'augmentedActiveDirectory') then 'augmentedActiveDirectory']: idp.ldap.sync.augmentedActiveDirectory,
Expand Down

0 comments on commit 1d85844

Please sign in to comment.