AW: JSON error when adding LDAP resolver

24 views
Skip to first unread message

Cornelius Kölbel

unread,
Jan 15, 2015, 12:47:03 PM1/15/15
to Tim Shirtz, priva...@googlegroups.com
Hi Tim,

Good to hear that the install went fine.
How does your LDAP config look like?
Especially the baseDN?

Can you see anything in the log file at /var/log/privacyidea/privacyidea.log?

I suspect there is an unhandled  LDAP error due to your config and the response from the server can not be parsed.

Hitting the button 'test connection' issues a Ajax request testconnection. 
You could also use the browser internal tools to investigate the response to this request.

Kind regards
Cornelius 


Cornelius Kölbel
+49 151 2960 1417

NetKnights GmbH
Landgraf-Karl-Str. 19, 34131 Kassel, Germany

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel


-------- Ursprüngliche Nachricht --------
Von: Tim Shirtz <tim.s...@quickflightservices.com>
Datum:15.01.2015 16:24 (GMT+01:00)
An: priva...@googlegroups.com
Cc:
Betreff: 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 .

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


--
You received this message because you are subscribed to the Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privacyidea...@googlegroups.com.
To post to this group, send email to priva...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privacyidea/01f1eda9-f2b5-4b8b-85d7-d64ba2e4d7e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Shirtz

unread,
Jan 16, 2015, 9:05:46 AM1/16/15
to priva...@googlegroups.com, tim.s...@quickflightservices.com


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

Cornelius Kölbel

unread,
Jan 16, 2015, 9:38:04 AM1/16/15
to Tim Shirtz, priva...@googlegroups.com
Hi Tim,
Oups, outgoing!...

Thanks for this feedback.
Do not hesitate with any other comments.
Feel also to add any requests to the issues on github.

Kind regards
Cornelius 


Cornelius Kölbel
+49 151 2960 1417

NetKnights GmbH
Landgraf-Karl-Str. 19, 34131 Kassel, Germany

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel


-------- Ursprüngliche Nachricht --------
Von: Tim Shirtz <tim.s...@quickflightservices.com>
Datum:16.01.2015 15:05 (GMT+01:00)
An: priva...@googlegroups.com
Cc: tim.s...@quickflightservices.com
Betreff: Re: JSON error when adding LDAP resolver
--
You received this message because you are subscribed to the Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privacyidea...@googlegroups.com.
To post to this group, send email to priva...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages