one way of doing it is to create a valve, since the valve has direct access
to the underlying objects, you can set the remoteUser

Filip

-----Original Message-----
From: Schehl, Micah [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 9:33 AM
To: 'Tomcat Users List'
Subject: request.setRemoteUser(p)



How can I programmatically set a user in the Tomcat container?  i.e.
request.setRemoteUser(p);  I know that doesn't exist, but that is
essentially what I need to do.

My scenario is that I want to send a 1024-bit key to a user.  That user
would send that key to a specific servlet.  The servlet would take the key
and lookup the user's information and programmatically log them into Tomcat.

On subsequent page requests, the request.getRemoteUser() would give me back
the user.

Thank you for any help,
Micah

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to