Hi,
I'm wondering if it's possible to be able to pull the real name of a user that is associated with a cas username.

So, I can use the module to register with this type of login:

username: someonesname
password: thepassword

What I want is to be able to use the actual name that's associated with the username for display on the site.

So if the user name is someonesname, say, like johnsmith, the module would be able to display John Smith on the site.

How can this be done?

Comments

metzlerd’s picture

Are you assuming that the user would be able to change their name in the drupal site, or alternatively are you talking about cas server providing it. The former is supported with a particular configuration. (Drupal is CAS user repository set to false).

I'd be willing to entertain a patch, but If that is the case, you're cas server must support providing extra parameters in the xml. I'm still trying to figure out if this is supported with the phpCAS client.

seth.vincent’s picture

I was hoping the cas server would supply the full name. What should I look to do first to make this happen?

redndahead’s picture

This is not really supported in phpCAS. We currently patch phpCAS for another application to do this. Also this isn't really supported in CAS2 in general. I believe CAS3 supports it.

bfroehle’s picture

Status: Active » Closed (works as designed)

Since this is, in general, not possible, I'm marking this issue as closed. There are some efforts to integrate CAS with LDAP, if you have access to an LDAP server. See #533762: Provide LDAP attributes/groups integration, for example.

metzlerd’s picture

Status: Closed (works as designed) » Closed (duplicate)

This actually can be done in the case that the cas server provides attributes using SAML. It also could be done with the cas module. The issue is pretty well described in the one refernece above along with #503414: CAS Attribute Token Support. When a general mechansim for updating user name and email attributes using hooks provided by the cas module it will be quite possible to do this using any number of mechanisms.