Skip to content

Commit

Permalink
Support overwriting URL in LDAP Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DebakelOrakel committed Sep 16, 2024
1 parent bc3e3f2 commit e449d13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion component/ldap.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ local syncConfig(namespace, idp, sa) =
local syncCfg = {
kind: 'LDAPSyncConfig',
apiVersion: 'v1',
url: idp.ldap.url,
url:
if std.objectHas(idp.ldap.sync, 'url') then
idp.ldap.sync.url
else
idp.ldap.url,
bindDN: idp.ldap.bindDN,
bindPassword:
if std.isString(idp.ldap.bindPassword) then
Expand Down

0 comments on commit e449d13

Please sign in to comment.