Project

General

Profile

redmine ldap auth failed.

Added by Igor Gajsin about 11 years ago

Hi, all. I have:

Environment:
Redmine version 2.3.1.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

ldap configured as:

name: redAD
host: ldap.tts.loc
port: 389
Account: CN=Redmine LDAP User,OU=System_Users,DC=tts,DC=loc
Password: ***
Base DN: dc=tts,dc=loc
LDAP filter: memberOf=CN=GSrv_Redmine_Access,OU=Сетевые_сервисы,OU=Группы_безопасности,OU=Groups,OU=TTS,DC=tts,DC=loc
On-the-fly user creation: checked
Login attribute: sAMAcountName
Firstname attribute: givenName
Lastname attribute: sn
Email attribute: mail

As you see there are cyrillic letters into field 'LDAP filter'. This is a problem. If replace filter to the group,which contain only latin letters or clear LDAP filter than auth is ok. But with this value auth doesn't work. I see:

Started POST "/login" for 10.10.0.3 at 2013-07-02 14:11:41 +0400
Processing by AccountController#login as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/stftTX57pOB8bD8zFpYuud4iaWU39wQKi/KejGF2UI=", "back_url"=>"http://redmine.tts.loc/", "username"=>"gajsin_ia", "password"=>"[FILTERED]", "login"=>"Вход »"}
(0.6ms) SELECT MAX AS max_id FROM `settings`
AnonymousUser Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('AnonymousUser') LIMIT 1
Current user: anonymous
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`login` = 'gajsin_ia'
AuthSource Load (0.6ms) SELECT `auth_sources`.* FROM `auth_sources` WHERE `auth_sources`.`id` = 1 LIMIT 1
Failed login for 'gajsin_ia' from 10.10.0.3 at 2013-07-02 10:11:41 UTC
Rendered account/login.html.erb within layouts/base (2.5ms)
Completed 200 OK in 44ms (Views: 11.2ms | ActiveRecord: 2.5ms)

into redmine log file.

I cannot rename LDAP-group. And I don't know how to fix this problem.