Skip to content
Snippets Groups Projects
Commit a6de7a8b authored by kfei's avatar kfei
Browse files

Fix unexpected escaping on LDAP configs


It's possible that using UID for an LDAP server in the form of:
`domname\username`, in this case the slash will be escaped and
authentication will always fail. Since we're not using interpolation in
the config, it's better replace `EOS` with `'EOS'`.

Signed-off-by: default avatarkfei <kfei@kfei.net>
parent 3627cf40
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
## yaml format and the spaces must be retained. Using tabs will not work.
# gitlab_rails['ldap_enabled'] = false
# gitlab_rails['ldap_servers'] = YAML.load <<-EOS # remember to close this block with 'EOS' below
# gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
# main: # 'main' is the GitLab 'provider ID' of this LDAP server
# label: 'LDAP'
# host: '_your_ldap_server'
......
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