Feature #13503

Optional disabling username validation with ldap authentication

Added by Daniel Felix over 9 years ago. Updated about 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Accounts / authentication
Target version:-
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.

History

#1 Updated by Daniel Felix about 9 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

Also available in: Atom PDF