diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb index 696d6219d..b18b657b0 100644 --- a/app/models/auth_source_ldap.rb +++ b/app/models/auth_source_ldap.rb @@ -198,7 +198,7 @@ class AuthSourceLdap < AuthSource def self.get_attr(entry, attr_name) if !attr_name.blank? value = entry[attr_name].is_a?(Array) ? entry[attr_name].first : entry[attr_name] - value.force_encoding('UTF-8') + value.to_s.force_encoding('UTF-8') end end end