Hi all,
I tested this in FreeBSD 9.1, 9.2 and 10 x64 versions.
Already upgraded ports.
Installed ports:
security/openvpn (version - 2.3.4)
security/openvpn-auth-ldap (version - 2.0.3)
My openvpn.conf file content:
My /usr/local/etc/openvpn/openvpn-auth-ldap.conf file content:
With ldapsearch I tested the LDAP configuration and it is successful.
When I tried to start OpenVPN from the command line with the command
After that I searched the error
on Google and found bug about this: http://lists.freebsd.org/pipermail/free ... 56360.html
And I want to know if anybody found how I can fix this?
Thank you for answers.
I tested this in FreeBSD 9.1, 9.2 and 10 x64 versions.
Already upgraded ports.
Installed ports:
security/openvpn (version - 2.3.4)
security/openvpn-auth-ldap (version - 2.0.3)
My openvpn.conf file content:
Code:
plugin /usr/local/lib/openvpn-auth-ldap.so "/usr/local/etc/openvpn/openvpn-auth-ldap.conf"
proto udp
port 1194
dev tun
server 192.168.150.0 255.255.255.0
ca /usr/local/etc/openvpn/keys/keys/ca.crt
cert /usr/local/etc/openvpn/keys/keys/openvpnserver.crt
key /usr/local/etc/openvpn/keys/keys/openvpnserver.key
client-cert-not-required
dh /usr/local/etc/openvpn/keys/keys/dh2048.pem
tls-auth /usr/local/etc/openvpn/keys/keys/ta.key 0
persist-key
persist-tun
keepalive 10 60
push "route 10.41.0.0 255.255.255.0"
topology subnet
user root
group wheel
daemon
log-append /var/log/openvpn.log
My /usr/local/etc/openvpn/openvpn-auth-ldap.conf file content:
Code:
<LDAP>
URL ldap://xxx.xx:389
BindDN XXX@XXX.XXX
Password XXXXXXXXXX
Timeout 15
</LDAP>
<Authorization>
BaseDN "DC=atl,DC=lan"
SearchFilter "(&(sAMAccountName=%u)(memberOf=CN=mercurial,OU=mercurial,DC=xxx,DC=xx))"
</Authorization>
With ldapsearch I tested the LDAP configuration and it is successful.
When I tried to start OpenVPN from the command line with the command
openvpn --config ad-auth.conf
, I found the error in my log file below:
Code:
cat /var/log/openvpn.log
Sat Jun 21 14:36:37 2014 OpenVPN 2.3.4 amd64-portbld-freebsd9.2 [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Jun 21 2014
Sat Jun 21 14:36:37 2014 library versions: OpenSSL 0.9.8y 5 Feb 2013, LZO 2.06
Sat Jun 21 14:36:37 2014 PLUGIN_INIT: plugin initialization function failed: /usr/local/lib/openvpn-auth-ldap.so
Sat Jun 21 14:36:37 2014 Exiting due to fatal error
Code:
plugin initialization function failed: openvpn-auth-ldap.so
And I want to know if anybody found how I can fix this?
Thank you for answers.
Last edited by a moderator: