JSON error when adding LDAP resolver

Can anyone shed some light on my issue here ?

I followed the How.To guide to install privacyidea as an OTP appliance. The
install went smooth as butter. However, once Im set up and ready to add my
OpenLDAP server as the IDresolver I hit a bump. I fill out all the info in
the new resolver box and when I press “test connection” a few moments go by
and I get :-------
We are sorry. An internal error occurred:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the
JSON data
in file:https://192.168.0.235/js/jquery-1.7.2.min.js
in line:2
To go on, reload this web page.

and I cannot go any further. The system is a clean ubuntu install as
outlined in How-To-Forge Article
https://www.howtoforge.com/how-to-setup-otp-appliance-with-privacyidea .

Any ideas on what i can do to fix this ? I would really like to get this
connected to my existing LDAP directory since I already have the LDAP
linked to my Wordpress and Mail server.

-Tshirtz

I forgot to add this is PrivacyIdea 1.5

Cornelius,

After looking through both my LDAP settings and the logs of PirvacyIDEA. I
decided to test a few other remote connections to the LDAP, as most of the
time my commands deal directly with the LDAP server and therefore can refer
to the server simply as “localhost” or “127.0.0.1”.

Well go figure that the OTP server had default IPtable rules and therefore
did not have an exception made to allow outgoing port 389. once I entered :
sudo iptables -A OUTPUT -p tcp --dport 389 -j ACCEPT

into the iptables rules of the OTP server, all was good. Thank you for the
insight

-Tim