Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use a Bind Password containing double quotes #84

Open
jgitlin-p21 opened this issue May 7, 2021 · 1 comment
Open

Cannot use a Bind Password containing double quotes #84

jgitlin-p21 opened this issue May 7, 2021 · 1 comment

Comments

@jgitlin-p21
Copy link

It appears there is no way to escape a double quote value " within the config file.

The leads to issues when the LDAP Bind Password contains a quote.

Example: Bind password of: TedSG"F!Bv$t@4P#&aJ6

Config like:

<LDAP>
  URL           ldap://ldapexample.com:389/
  BindDN                uid=ldap,ou=Users,o=example,dc=com
  Password	"TedSG\"F!Bv$t@4P#&aJ6"
...

Results in error:

A parse error occured while attempting to comprehend F!Bv$t@4P#&aJ6, on line 12.
Fri May  7 19:15:12 2021 PLUGIN_INIT: plugin initialization function failed: /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so
Fri May  7 19:15:12 2021 Exiting due to fatal error

If there is an escape character I should be using, please let me know! I reviewed the TRConfigLexer.re and could not find the proper syntax to use...

@jgitlin-p21
Copy link
Author

I have since worked around this issue by writing my own LDAP authentication script; therefore please feel free to deprioritize this issue (or close it outright) if nobody else appears to be affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant