rubycas / rubycas-server

Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
http://rubycas.github.com
Other
628 stars 270 forks source link

Array values in extra_attributes are not serialized properly in ruby 1.9.3 #113

Open ganeshs opened 12 years ago

ganeshs commented 12 years ago

When extra_attributes contain array values, they are not serialized properly. Serialization results like below string


The serialize_extra_attribute method does a to_yaml which is the culprit here. The ldap attributes are encoded as ASCII-8BIT which should be force_encoded to UTF-8 before serialization

ganeshs commented 12 years ago

Upgrading the net-ldap 0.3.0, solves the problem

https://github.com/ruby-ldap/ruby-net-ldap/pull/22