Actions
Feature #13503
openOptional disabling username validation with ldap authentication
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.
Updated by Daniel Felix over 11 years ago
Maybe this would help:
validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i, :if => self.auth_source_id.blank?
Actions