﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
981	Unhandled Exception when using LDAP plugin	tawhuac		"We are using the LDAP plugin for authentication. However, when we enable LDAP, after entering username and password, the site returns with 


{{{

== Unhandled Exception ==
 

An unhandled exception was thrown by the application.
}}}


Pretty ugly...Proper error management and a nice error message at least would help because now we are stuck because we don't know if the config is wrong or there is a problem with mediagoblin.

Here's the config:

{{{
[plugins]
[[mediagoblin.plugins.geolocation]]
#[[mediagoblin.plugins.basic_auth]]
[[mediagoblin.media_types.image]]
[[mediagoblin.plugins.ldap]]
[[[server1]]]
LDAP_SERVER_URI = 'ldap://10.10.10.7:389'
LDAP_BIND_DN = 'cn=admin,dc=<HIDDEN>,dc=cc'
LDAP_BIND_PW = '<HIDDEN>'
LDAP_USER_DN_TEMPLATE = 'cn={username},ou=Users,dc=<HIDDEN>,dc=cc'
EMAIL_SEARCH_FIELD = 'mail'
}}}

The log file only prints:

{{{
2014-09-28 19:37:01,106 INFO    [mediagoblin.plugins.ldap.tools] Connecting to ldap://10.10.10.7:389.
2014-09-28 19:37:01,106 INFO    [mediagoblin.plugins.ldap.tools] Unbinding ldap://10.10.10.7:389.
}}}

So it seems it DOES connect to LDAP but for some reason it fails.


Using mediagoblin 0.7.1


"	defect	closed	critical		programming	fixed	ldap plugin		
