tykeal / ep_ldapauth

(Up for adoption) LDAP authentication plugin for Etherpad-lite
GNU General Public License v2.0
25 stars 20 forks source link

ldap authentificacion etherpad_lite debugging #8

Closed gil-obradors closed 9 years ago

gil-obradors commented 10 years ago

Hello, I have problems to authenticate my ldap_users I think my config is good, i have enabled debug loglevel, but in my console I doesn't read anything about ldaps connection

Where I can enable it ?

Very easy to install ! Thank's a lot!

tykeal commented 10 years ago

When you enable debug (configure 'loglevel: DEBUG' in your settings file) and run etherpad_lite from the console (non-daemon) you should see debug statements of the form 'ep_ldapauth.: '

If you aren't getting those make sure you set the config variable.

gil-obradors commented 10 years ago

Yes I have! /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */ "loglevel": "DEBUG",

I only get this:

[2013-11-25 21:15:10.788] [INFO] ueberDB - Flushed 1 values [2013-11-25 21:15:15.044] [DEBUG] SessionStore - GET VJaUEWWSl8hxwyWACFO7Xou2 [2013-11-25 21:15:15.045] [DEBUG] ueberDB - GET - sessionstorage:VJaUEWWSl8hxwyWACFO7Xou2 - {"cookie":{"path":"/","_expires":null,"originalMaxAge":null,"httpOnly":true}} - from cache [2013-11-25 21:15:16.046] [DEBUG] SessionStore - SET VJaUEWWSl8hxwyWACFO7Xou2 [2013-11-25 21:15:16.047] [DEBUG] ueberDB - SET - sessionstorage:VJaUEWWSl8hxwyWACFO7Xou2 - {"cookie":{"path":"/","_expires":null,"originalMaxAge":null,"httpOnly":true}} - to buffer [2013-11-25 21:15:16.047] [DEBUG] http - 401, GET / [2013-11-25 21:15:16.095] [INFO] ueberDB - Flushed 1 values

ep_ldapauth is a plugin? I have this output, but ep_ldapauth isn't

2013-11-25 21:27:51.105] [DEBUG] pluginfw - [ 'vargs@0.1.0' ] 'returning' [...]

I just discovered that no auth_sistem is working, ep_ldaphauth nor admin in settings.json

Thank's a lot

gil-obradors commented 10 years ago

Sorry! The plugin was not correctly installed. Now is working,

But I have another problem: [2013-11-26 09:07:26.989] [ERROR] console - ep_ldapauth.authenticate: LDAP auth error: ConnectionError: ldaps://10.228.17.29 closed

I have tried with 10.228.17.29:636/ and negative. I have various VM with LXC with pam_ldap for loggin, and they're working

tykeal commented 10 years ago

Sorry for not responding sooner. The error that you're getting is coming from your LDAP server itself. Is it possible to look at the logs on the server? They may have better detail as to what the actual problem is.