cschiewek/devise_ldap_authenticatable — Issue #67: Provides no useful logging information when troubleshooting
Author: strich
Created: 2011-12-14 03:35:43+00:00
State: open

I'm trying to log use our LDAP server as authentication for my RAILS app, however it is not working and Devise provides no logging to help me troubleshoot.
The LDAP connection is SSL+anon auth.
The below config works perfectly with a PHP LDAP auth lib as well as an LDAP explorer tool I've tested it with.

ldap.yml:
development:
host: ldap.company.com
port: 636
attribute: mail
base: ou=ldap,o=company.com
ssl: simple_tls

Log:
LDAP: LDAP dn lookup: mail=richmond@company.com
LDAP: LDAP search for login: mail=richmond@company.com
LDAP: Authorizing user mail=richmond@company.com,ou=ldap,o=company.com
LDAP: LDAP dn lookup: mail=richmond@company.com
LDAP: LDAP search for login: mail=richmond@company.com
Completed 401 Unauthorized in 4043ms

Whats not working? Is search returning nothing? The dn lookup?