Skip to content

Commit 6e2a5f0

Browse files
authored
Merge pull request #39 from opus-codium/fix-string-interpolation
Fix string interpolation in configuration file
2 parents a2211cb + 2229e24 commit 6e2a5f0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/back/local.py-ldap.epp

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ LDAP_PORT = <%= $taiga::back::ldap_port %>
55

66
# Full DN of the service account use to connect to LDAP server and search for login user's account entry
77
# If LDAP_BIND_DN is not specified, or is blank, then an anonymous bind is attempated
8-
LDAP_BIND_DN = <%= if $taiga::back::ldap_bind_dn { "'#{$taiga::back::ldap_bind_dn}'" } else { 'None' } %>
9-
LDAP_BIND_PASSWORD = <%= if $taiga::back::ldap_bind_password { "'#{$taiga::back::ldap_bind_password}'" } else { 'None' } %>
8+
LDAP_BIND_DN = <%= if $taiga::back::ldap_bind_dn { String($taiga::back::ldap_bind_dn, '%p') } else { 'None' } %>
9+
LDAP_BIND_PASSWORD = <%= if $taiga::back::ldap_bind_password { String($taiga::back::ldap_bind_password, '%p') } else { 'None' } %>
1010
# Starting point within LDAP structure to search for login user
1111
LDAP_SEARCH_BASE = '<%= $taiga::back::ldap_search_base %>'
1212
# LDAP property used for searching, ie. login username needs to match value in sAMAccountName property in LDAP
1313
LDAP_SEARCH_PROPERTY = '<%= $taiga::back::ldap_search_property %>'
14-
LDAP_SEARCH_SUFFIX = <%= if $taiga::back::ldap_search_suffix { "'#{$taiga::back::ldap_search_suffix}'" } else { 'None' } %> # '@example.com'
14+
LDAP_SEARCH_SUFFIX = <%= if $taiga::back::ldap_search_suffix { String($taiga::back::ldap_search_suffix, '%p') } else { 'None' } %> # '@example.com'
1515

1616
# Names of LDAP properties on user account to get email and full name
1717
LDAP_EMAIL_PROPERTY = '<%= $taiga::back::ldap_email_property %>'

templates/back/local.py.epp

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ SERVER_EMAIL = DEFAULT_FROM_EMAIL
3030
# for enable email sending. EMAIL_HOST_USER should end by @domain.tld
3131
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
3232
EMAIL_USE_TLS = <%= String($taiga::back::email_use_tls, '%T') %>
33-
EMAIL_HOST = <%= if $taiga::back::email_host { "'#{$taiga::back::email_host}'" } else { 'None' } %>
34-
EMAIL_HOST_USER = <%= if $taiga::back::email_user { "'#{$taiga::back::email_user}'" } else { 'None' } %>
35-
EMAIL_HOST_PASSWORD = <%= if $taiga::back::email_password { "'#{$taiga::back::email_password}'" } else { 'None' } %>
33+
EMAIL_HOST = <%= if $taiga::back::email_host { String($taiga::back::email_host, '%p') } else { 'None' } %>
34+
EMAIL_HOST_USER = <%= if $taiga::back::email_user { String($taiga::back::email_user, '%p') } else { 'None' } %>
35+
EMAIL_HOST_PASSWORD = <%= if $taiga::back::email_password { String($taiga::back::email_password, '%p') } else { 'None' } %>
3636
EMAIL_PORT = <%= $taiga::back::email_port %>
3737

3838
<% if $taiga::back::change_notification_min_interval { -%>

0 commit comments

Comments
 (0)