First off, thanks for the quick response!

     I've tried to make that call but keep getting null values back for
both the getUerPrincipal and getRemoteUser on the HttpServletRequest...
do I need to wait until the next request to make these calls or is it ok
to check them immediately after the commit is called?

-Rob

-----Original Message-----
From: Michael Ludwig [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 16, 2008 3:48 PM
To: Tomcat Users List
Subject: Re: Accessing User subject or User principal

Rob Mercer schrieb am 16.11.2008 um 12:24:00 (-0800):
> I'm trying to implement a JAAS Realm solution, I'm unable to after
> setting the subject/principal figure out how I'm supposed to
> programmatically access either of these values after they've been set
> in my LoginModule's commit() call?

You're supposed to access these values by calling getUserPrincipal() on
the HttpServletRequest object.

http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/

Michael Ludwig

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to