I have been using OpenVPN-AS for some time now and started using Zentyal a few years back. I initially set up OpenVPN-AS to authentica users using the LDAP provided in Zentyal. This was initially set up on Zentyal Version 3.1 and continued to work until I upgraded to Zentyal 4.0/4.1. I am currently utilizing Zentyal 4.2.2 and OpenVPN-AS 2.0.21. Now when I try to access the vpn with a User Account set up in the LDAP it fails with the following error:
Cannot connect to LDAP server ldap://<IP Address>/: {'desc': "Can't contact LDAP server"} (facility='admin_bind to [cn=Administrator,cn=Users,dc=zentyal,dc=local]')
Fortunately this is not a high traffic service for my business purposes. I have attempted to test the connection to the LDAP using the command line:
ldapsearch -x -h <IP Address> - p 389 [b]-D "cn=Administrator,cn=Users,dc=zentyal,dc=local"[/b] -b "cn=Users,dc=zentyal,dc=local" -W
This did not work as well. I posted a question on the Zentyal forum and received a response that suggested that I utilize the UPN format (i.e
Administrator@zentyal.com) for "Bind DN" in the ldapsearch command:
ldapsearch -x -h <IP Address> - p 389 [b]-D "Administrator@zentyal.local"[/b] -b "cn=Users,dc=zentyal,dc=local" -W
This actually work from the command line with the only difference being the "Bind DN" format. My problem is how do I translate that into the necessary "Bind DN" to configure OpenVPN-AS.
My initial configuration was set up using the Bind DN of "cn=Administrator,cn=Users,dc=zentyal,dc=local"
I am assuming that some change was made on Zentyal that is making this difficult (or User error on my part). I have posted a question on the Zentyal Forum as well but thought I would see if this forum could provide any support.