Opened 8 years ago

Last modified 7 years ago

#5489 new enhancement

user_ldap: Log something on failure due to SSL problems

Reported by: Olivier Mehani Owned by:
Priority: minor Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

The SSL certificate of my LDAP server lapsed yesterday. I renwed it but forgot to restart the server.

My MediaGoblin instance authenticates users against this LDAP server, and started refusing logins, showing just “Login failed” in the UI.

Nothing appeared in the log suggesting that, rather than an invalid user or password, the reason of the failure was an SSL error when connecting to the server.

It would be good to log this explicitely, to help debugging those weird issues.

Change History (1)

comment:1 by ayleph, 7 years ago

The LDAP plugin login function should log some text at info level if an LDAPError exception is returned while connecting. Did you not see any INFO lines in the log with the LDAPError exception?

Note: See TracTickets for help on using tickets.