Project

General

Profile

Actions

Defect #20703

closed

ldap filter can`t contain non-english characters

Added by Alexander Ryabinovskiy over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
LDAP
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I can`t save LDAP filter with non-english (russian) characters, because validation fails. But our AD groups contains it. For example:

Filter: (&(objectClass=user)(memberOf=CN=Программисты,OU=All groups,DC=organization,DC=local))


Files


Related issues

Related to Redmine - Defect #13728: Cannot logon using LDAP with the Russian passwordNew

Actions
Actions #1

Updated by Toshi MARUYAMA about 9 years ago

  • Related to Defect #13728: Cannot logon using LDAP with the Russian password added
Actions #2

Updated by Фёдор Патлин about 9 years ago

Same problem in 3.2.0.

Exception is:

I, [2015-12-23T07:30:49.374444 #715]  INFO -- :   Rendered account/register.html.erb within layouts/base (2.0ms)
I, [2015-12-23T07:30:49.374769 #715]  INFO -- : Completed 500 Internal Server Error in 250ms (ActiveRecord: 4.8ms)
F, [2015-12-23T07:30:49.375824 #715] FATAL -- : 
ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
    13:   <p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
    14: <% end %>
    15: 
    16: <p><%= f.text_field :firstname, :required => true %></p>
    17: <p><%= f.text_field :lastname, :required => true %></p>
    18: <p><%= f.text_field :mail, :required => true %></p>
    19: 
  lib/redmine/views/labelled_form_builder.rb:31:in `text_field'
  app/views/account/register.html.erb:16:in `block in _app_views_account_register_html_erb___657187689598037617_67033640'
  app/helpers/application_helper.rb:1030:in `labelled_form_for'
  app/views/account/register.html.erb:3:in `_app_views_account_register_html_erb___657187689598037617_67033640'
  app/controllers/account_controller.rb:286:in `onthefly_creation_failed'
  app/controllers/account_controller.rb:199:in `password_authentication'
  app/controllers/account_controller.rb:189:in `authenticate_user'
  app/controllers/account_controller.rb:40:in `login'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

I make quick patch that fix it.

Actions #3

Updated by Toshi MARUYAMA about 9 years ago

Фёдор Патлин wrote:

Same problem in 3.2.0.

Exception is:
[...]

I make quick patch that fix it.

Try #21453#note-4 instead.

Actions #4

Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from New to Closed

I close because #17618 upgraded gem.

Actions

Also available in: Atom PDF