Fix issue with LDAP password
LDAP password with special characters like !,@,^ must be in quotes
in secure.config
Bug: Issue 13186
Change-Id: Iebeb197318c120875ddd69b978120980796b4578
diff --git a/Secrets.md b/Secrets.md
index 962b84a..5c3a3ef 100644
--- a/Secrets.md
+++ b/Secrets.md
@@ -65,7 +65,8 @@
### LDAP Password
You will need to put the admin LDAP password in a file called `ldapPassword`
-in the same directory of the SSH keys (e.g. `/tmp/secrets`).
+in the same directory of the SSH keys (e.g. `/tmp/secrets`). Password should be put in the
+plain text without quotes. If password contains quotes, they should be escaped (e.g aa\"bb)
### SMTP Password
diff --git a/gerrit/etc/secure.config.template b/gerrit/etc/secure.config.template
index f05c0ca..143aaf2 100644
--- a/gerrit/etc/secure.config.template
+++ b/gerrit/etc/secure.config.template
@@ -1,6 +1,6 @@
[auth]
registerEmailPrivateKey = {{ REGISTER_EMAIL_PRIVATE_KEY }}
[ldap]
- password = {{ LDAP_PASSWORD }}
+ password = "{{ LDAP_PASSWORD }}"
[sendemail]
smtpPass = {{ SMTP_PASSWORD }}