ldap: Fix escape sequence in regsubst
This commit is contained in:
parent
77d95f3623
commit
f49eb1710a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class ldap::auth(
|
||||||
tag("bootstrap")
|
tag("bootstrap")
|
||||||
|
|
||||||
$ldap_uri = inline_template('<%= @ldap_server.join(" ") -%>')
|
$ldap_uri = inline_template('<%= @ldap_server.join(" ") -%>')
|
||||||
if regsubst($ldap_uri, "^(ldaps)://.*", "\1") == "ldaps"{
|
if regsubst($ldap_uri, '^(ldaps)://.*', '\1') == "ldaps"{
|
||||||
$ssl = "on"
|
$ssl = "on"
|
||||||
} else {
|
} else {
|
||||||
$ssl = "off"
|
$ssl = "off"
|
||||||
|
|
Loading…
Add table
Reference in a new issue