infrastructure-services: Fix the openvpn variables.

This commit is contained in:
Andrea Dell'Amico 2016-10-15 15:30:24 +02:00
parent 81361612bd
commit a3422e07fc
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ $ldap = Net::LDAP->new($opt_uri) or die("LDAP connect to $opt_uri failed!");
{% endif %} {% endif %}
{% if openvpn_ldap_nonanon_bind %} {% if openvpn_ldap_nonanon_bind %}
$result = $ldap->bind('{{ openvpn_ldap_binddn }}', password => '{{ openvpn_ldap_bindpwd }}'); $result = $ldap->bind('{{ openvpn_ldap_binddn }}', password => '{{ openvpn_ldap_bindpwd | default('') }}');
{% else %} {% else %}
$result = $ldap->bind($opt_binddn, password => $opt_passwd); $result = $ldap->bind($opt_binddn, password => $opt_passwd);
{% endif %} {% endif %}