cschiewek/devise_ldap_authenticatable — Issue #56: Active Directory Authentication Issue
Author: castitt
Created: 2011-10-19 22:52:24+00:00
State: open

@gamafranco @cairo140

Thought I would create a separate issue to resolve my problem.

I modified my connection to match what i thought should be right. When i run the following command in `rails console` it returns true.

`Devise::LdapAdapter.valid_credentials?('myusername', 'mypassword')`

However, when i attempt to put these details in the login page of my application it does not log in. When I look at the rails server log it doesn't seem to be doing anything against LDAP. See the POST action below.

`Started POST "/users/sign_in" for 127.0.0.1 at 2011-10-20 08:46:25 +1000
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"Γ£ô", "authenticity_token"=>"u86KVD938HZreSoF2UJHW5A+M/U
kRh/1fKHEaQI28o8=", "user"=>{"username"=>"stittc", "password"=>"[FILTERED]", "re
member_me"=>"0"}, "commit"=>"Sign in"}
←[1m←[35mUser Load (1.2ms)←[0m EXEC sp_executesql N'SELECT TOP (1) [users].*
FROM [users] WHERE [users].[username] = N''stittc'''
Completed in 124ms
Processing by Devise::SessionsController#new as HTML
Parameters: {"utf8"=>"Γ£ô", "authenticity_token"=>"u86KVD938HZreSoF2UJHW5A+M/U
kRh/1fKHEaQI28o8=", "user"=>{"username"=>"stittc", "password"=>"[FILTERED]", "re
member_me"=>"0"}, "commit"=>"Sign in"}
Rendered devise/shared/_links.erb (0.0ms)
Rendered devise/sessions/new.html.erb within layouts/application (16.7ms)
Completed 200 OK in 29ms (Views: 17.8ms | ActiveRecord: 3.6ms)`

Should it be showing a line or 2 where it checks against LDAP?

Thanks in advance.