i tried also following:
URL "ldap://192.168.3.12:636"
URL "ldaps://192.168.3.12:636"
URL "ldaps://192.168.3.12"
with:
TLSEnable no
i found the following:
https://github.com/threerings/openvpn-auth-ldap/issues/65
https://www.openldap.org/lists/openldap-software/200202/msg00456.html
allow The client certificate is requested. If no
certificate is provided, the session
proceeds normally. If a bad certificate is
provided, it will be ignored and the session
proceeds normally.
demand | hard | true
These keywords are all equivalent, for
compatibility reasons. The client
certificate is requested. If no certificate
is provided, or a bad certificate is
provided, the session is immediately
terminated.
So i guess self signed = "bad certificate"
This i found also:
/* LDAP Settings */
TRString *_url;
BOOL _tlsEnabled;
BOOL _referralEnabled;
int _timeout;
TRString *_tlsCACertFile;
TRString *_tlsCACertDir;
TRString *_tlsCertFile;
TRString *_tlsKeyFile;
TRString *_tlsCipherSuite;
TRString *_bindDN;
TRString *_bindPassword;
/* Authentication / Authorization Settings */
TRString *_baseDN;
TRString *_searchFilter;
BOOL _requireGroup;
TRString *_pfTable;
TRArray *_ldapGroups;
BOOL _pfEnabled;
BOOL _passwordISCR;
Note it says tlsEnable
d
# Uncomment and set to true to support OpenVPN Challenge/Response
# PasswordIsCR true