Closed GoogleCodeExporter closed 8 years ago
I think this has already been fixed in development (in github/svn). I'll
double-check.
Original comment by matt.zuk...@gmail.com
on 16 Mar 2009 at 6:56
In github:
http://github.com/gunark/rubycas-server/blob/2362341b1e80fb684fe200dd030a25d9d63
5a477/lib/casserver/authenticators/ldap.rb
def extract_extra_attributes(ldap_entry)
@extra_attributes = {}
extra_attributes_to_extract.each do |attr|
v = !ldap_entry[attr].blank? && ldap_entry[attr].first
if v
@extra_attributes[attr] = v.to_s
end
end
if @extra_attributes.empty?
$LOG.warn("#{self.class}: Did not read any extra_attributes for user
#{@username.inspect} even though an :extra_attributes option was provided.")
else
$LOG.debug("#{self.class}: Read the following extra_attributes for user
#{@username.inspect}: #{@extra_attributes.inspect}")
end
ldap_entry
end
Looks like github still has the first entry assigned.
Original comment by vocc...@gmail.com
on 18 Mar 2009 at 6:29
okay i've added your patch to github
Original comment by matt.zuk...@gmail.com
on 18 Mar 2009 at 8:03
Original issue reported on code.google.com by
vocc...@gmail.com
on 14 Mar 2009 at 5:20