Skip to content

Commit

Permalink
skip bindDn setting if the env var is not set for jass login module t…
Browse files Browse the repository at this point in the history
…emplate
  • Loading branch information
ltamaster authored and ProTip committed Jul 26, 2021
1 parent 9755570 commit 33904c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/official/remco/templates/jaas-loginmodule.conf
Expand Up @@ -5,7 +5,9 @@
debug="{{ getv("/rundeck/jaas/ldap/debug", "true") }}"
contextFactory="{{ getv("/rundeck/jaas/ldap/contextfactory", "com.sun.jndi.ldap.LdapCtxFactory") }}"
providerUrl="{{ getv("/rundeck/jaas/ldap/providerurl") }}"
{% if exists("/rundeck/jaas/ldap/binddn") -%}
bindDn="{{ getv("/rundeck/jaas/ldap/binddn") }}"
{% endif %}
{% if exists("/rundeck/jaas/ldap/bindpassword") -%}
bindPassword="{{ getv("/rundeck/jaas/ldap/bindpassword") }}"
{% endif %}
Expand Down

0 comments on commit 33904c1

Please sign in to comment.