Skip to content
Snippets Groups Projects
Commit b38cbbf9 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

allowing TLS and Certificate to be NOT defined

Former-commit-id: 5ac8a78c
parent fb7ccac6
No related branches found
No related tags found
1 merge request!313Mockldap without TLS enabled but capable
...@@ -28,9 +28,17 @@ ldap_chpass_uri = {{ ldapURI }} ...@@ -28,9 +28,17 @@ ldap_chpass_uri = {{ ldapURI }}
{% else %} {% else %}
ldap_uri = {{ ldapURI }} ldap_uri = {{ ldapURI }}
{% endif %} {% endif %}
ldap_id_use_start_tls = {{ useTLS }}
{% if useTLS is not defined%}
ldap_tls_reqcert = never
ldap_id_use_start_tls = True ldap_id_use_start_tls = True
ldap_tls_reqcert = allow {% else %}
ldap_tls_reqcert = always
ldap_id_use_start_tls = {{ useTLS }}
{% endif %}
{% if ldapCaCertFile is defined %}
ldap_tls_cacert = {{ ldapCaCertFile }} ldap_tls_cacert = {{ ldapCaCertFile }}
{% endif %}
ldap_default_bind_dn = {{ ldapBindDN }} ldap_default_bind_dn = {{ ldapBindDN }}
ldap_default_authtok_type = password ldap_default_authtok_type = password
ldap_default_authtok = {{ ldapBindDNPassword }} ldap_default_authtok = {{ ldapBindDNPassword }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment