nagyistoce / openvpn-auth-ldap

Automatically exported from code.google.com/p/openvpn-auth-ldap
Other
0 stars 0 forks source link

Parse error if BindDN has spaces #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 anssi.wi...@gmail.com on 25 Apr 2014 at 3:52

GoogleCodeExporter commented 9 years ago
openvpn-auth-ldap version: 2.0.3-1.1

Original comment by anssi.wi...@gmail.com on 28 Apr 2014 at 5:48

GoogleCodeExporter commented 9 years ago
Bind works if I use quotes in BindDN:
<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>

Original comment by anssi.wi...@gmail.com on 28 Apr 2014 at 6:30