Hi All, I've modified DotNetCasClient so that User.Identity.Name is set cas:netid (custom property) instead of cas:user. This solved a problem for me because cas:user at Dartmouth is based on a person's name. As a result, if your name changed then an app based on DotNetCasClient would see you as a new user. cas:netid at Dartmouth is unique and guaranteed to never change for someone.
Now my updated version of DotNetCasClient sets User.Identity.Name from the cas:netid. This is great, except that there is additional data in the cas:serviceResponse that I'd like to utilize. For instance, I'd like to use cas:name. I tried out setting User.Identity.Name = cas:netid + "|" + cas:name. That worked well for gaining access to both the username and displayname for a person. However, because my app's UserProfile table is setup such that username = netid (not cas:netid + "|" + cas:name), the built in function Roles.IsUserInRole() function no longer works. I could get the DisplayName of a person at logon time by doing an LDAP query, but that is ugly. Is there a simple way to get access to other cas:serviceResponse properties? Thanks! -EWG Elijah W. Gagne | e...@dartmouth.edu<mailto:e...@dartmouth.edu> | W: 603.646.9650 | C: 518.321.6611 Infrastructure Applications Administrator | Dartmouth College | Hanover, NH 03755 -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev