This is the code: String remoteUser = request.getRemoteUser(); AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal(); Map attributes = principal.getAttributes();
remoteUser = "user" attibutes.size() = 0 _________________________________________ Paolo Giammarco / Capgemini / Rome, Italy Consultant / Java Factory e-mail: paolo.giamma...@capgemini.com tel: +39 06231901 _________________________________________ ________________________________________ Da: Tobias Trelle [tobias.tre...@proximity.de] Inviato: lunedì 7 giugno 2010 15.33 A: cas-user@lists.jasig.org Oggetto: Re: R: Re:[cas-user] Retrieve logon info paolo-3 wrote: > > I still have the property "principal" with no attributes. > So request.getRemoteUser() and request.getUserPrincipal() both return non-null values? paolo-3 wrote: > > What else can I check? > On the server side you have to a) populate the attributes, e.g. from a LDAP attribute repository (see https://wiki.jasig.org/display/CASUM/Attributes ) b) configure the service to serve these attributes (or a subset of them) to the client (see https://wiki.jasig.org/display/CASUM/Services+Management ) HTH -- Tobias Trelle -- View this message in context: http://jasig.275507.n4.nabble.com/Retrieve-logon-info-tp2245891p2245945.html Sent from the CAS Users mailing list archive at Nabble.com. -- You are currently subscribed to cas-user@lists.jasig.org as: paolo.giamma...@capgemini.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- You are currently subscribed to cas-user@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-user