Project

General

Profile

Actions

Feature #13503

open

Optional disabling username validation with ldap authentication

Added by Daniel Felix about 11 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Maybe this is a proper use case. I stumbled over this problem with German umlauts on ldap authentication. .

Why is there any validation of usernames if they are received by LDAP which tends to be checked names?

I would add the option on the ldap source setting to disable the name validation if the user creation comes along this ldap setting. This would give some flexibility and would solve some problems regarding international login names with ldap.

Actions #1

Updated by Daniel Felix over 10 years ago

Maybe this would help:

validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i, :if => self.auth_source_id.blank?

in: source:/trunk/app/models/user.rb#L96

Actions

Also available in: Atom PDF