diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/auth_source_ldap.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb index 91942b282..92bcd4d65 100644 --- a/app/models/auth_source_ldap.rb +++ b/app/models/auth_source_ldap.rb @@ -29,6 +29,14 @@ class AuthSourceLdap < AuthSource before_validation :strip_ldap_attributes + def self.human_attribute_name(attribute_key_name, *args) + attr_name = attribute_key_name.to_s + if attr_name == "filter" + attr_name = "ldap_filter" + end + super(attr_name, *args) + end + def initialize(attributes=nil, *args) super self.port = 389 if self.port == 0 |