Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra attributes not returned correctly #37

Closed
sbfaulkner opened this issue Feb 5, 2011 · 3 comments
Closed

extra attributes not returned correctly #37

sbfaulkner opened this issue Feb 5, 2011 · 3 comments

Comments

@sbfaulkner
Copy link
Contributor

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: brentf@example.com
  "@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...

@sbfaulkner
Copy link
Contributor Author

use to_s on array values too. closed by 0aa7aed

@sunambiar
Copy link

I have a similar problem.

I have a JASIG Java Client and a Ruby-CAS server.
Though I get the User ID thru getRemoteUser(), the principal attributes are null. I have configured 3 to 4 extra_attributes in the RubyCAS and I am able to find them getting populated in the Database Tables.

Need urgent help!!

memuller pushed a commit to memuller/rubycas-server that referenced this issue Oct 14, 2011
memuller pushed a commit to memuller/rubycas-server that referenced this issue Oct 14, 2011
@josh7weaver
Copy link

@sunambiar - adding a response in case someone in future sees your question:

JASIG style responses for extra attributes in their own <cas:attributes> xml tag are supported in Ruby-CAS server as of PR #165, merged in 2013.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants