openvpn-auth-ldap icon indicating copy to clipboard operation
openvpn-auth-ldap copied to clipboard

Parse error if BindDN has spaces

Open GoogleCodeExporter opened this issue 9 years ago • 2 comments

Trying to bind to company ldap with this kind of ldap.conf:

<LDAP>
  URL ldap://ldap.example.com:389
  BindDN cn=Company DirManager,dc=example,dc=com
  Password password
  Timeout 15
  TLSEnable no
  FollowReferrals no
  TLSCACertFile /usr/local/etc/ssl/ca.pem
  TLSCACertDir /etc/ssl/certs
  TLSCertFile /usr/local/etc/ssl/client-cert.pem
  TLSKeyFile /usr/local/etc/ssl/client-key.pem
</LDAP>

<Authorization>
  BaseDN dc=example,dc=com
  SearchFilter "(&(sAMAccountName=%u))"
  RequireGroup false

</Authorization>

openvpn-auth-ldap fails to bind to ldap and gives error message:
"A parse error occured while attempting to comprehend DirManager, on line 3"


Operating system is Ubuntu 12.04 LTS server and OpenVPN version: 2.2.1.

Original issue reported on code.google.com by [email protected] on 25 Apr 2014 at 3:52

GoogleCodeExporter avatar Jun 21 '15 01:06 GoogleCodeExporter