Skip to content

extra attributes not returned correctly #37

@sbfaulkner

Description

@sbfaulkner

I'm not sure if it's the new net-ldap introducing this issue, but extra_attributes with array values are not being returned correctly...

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
  <cas:authenticationSuccess>
    <cas:user>brent.faulkner</cas:user>
    <cn>
      <![CDATA[--- 
- !str:Net::BER::BerIdentifiedString 
  str: Faulkner, Brent
  "@ber_identifier": 4
]]>
    </cn>
    <mail>
      <![CDATA[--- 
- !str:Net::BER::BerIdentifiedString 
  str: [email protected]
  "@ber_identifier": 4
]]>
    </mail>
    <memberof>
      <![CDATA[--- 
- !str:Net::BER::BerIdentifiedString 
  str: CN=First Group,OU=Global Groups,DC=example,DC=com
  "@ber_identifier": 4
- !str:Net::BER::BerIdentifiedString 
  str: CN=Next Group,OU=Global Groups,DC=example,DC=com
  "@ber_identifier": 4
- !str:Net::BER::BerIdentifiedString 
  str: CN=Another Group,OU=Global Groups,DC=example,DC=com
  "@ber_identifier": 4
]]>
    </memberof>
  </cas:authenticationSuccess>
</cas:serviceResponse>

It looks like to_s is being used on non-array attributes, but not on array values...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions