Project

General

Profile

unable to login with LDAP

Added by Tejas Sawai about 9 years ago

In our lab we just setup and LDAP server(192.168.3.50/CentOS7) and Redmine (192.168.3.71), and tried to authenticate through LDAP.
My LDAP Settings are-

NAME: LDAP_CentOS
HOST: 192.168.3.50
PORT: 389
ACCOUNT:
PASSWORD:
BASE DN: dc=cms,dc=com
LDAP FILTER:
Timeout (in seconds): 20
On-the-fly-user-creation: YES

Attributes-
Login: sAMAccountName
FirstName: givenName
LastName: sN
Eamil: mail

After this test connection was successful.
And I have created one account using LDAP Authetication, but it gives "Invalid user or password" Error.

in `redmine/log/production.log` I got following error.
Started POST "/login" for 192.168.3.222 at 2015-05-20 07:03:37 +0000
Processing by AccountController#login as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+H/pKoFlVworUtcQibQHRBybBl7axwMg5fKZANfhBgI=", "back_url"=>"http://192.168.3.71/", "username"=>"tejas", "password"=>"[FILTERED]", "login"=>"Login »"}
Current user: anonymous
Failed login for 'tejas' from 192.168.3.222 at 2015-05-20 07:03:37 UTC
Rendered account/login.html.erb within layouts/base (1.8ms)
Completed 200 OK in 17ms (Views: 8.3ms | ActiveRecord: 0.4ms)

My LDAP server is Tested on client in following command:
#ldapwhoami -vvv -h 192.168.3.50 -p 389 -D cn=tejas,dc=cms,dc=com -x -w tejas
ldap_initialize( ldap://192.168.3.50:389 )
dn:cn=tejas,dc=cms,dc=com
Result: Success (0)

How do I further debug this issue? Is something wrong in my configuration?