I'm providing my comments assuming that you are a Java developer.
1. Do you see any issues using a Servlet filter for doing this?
2. You could use realms if you can access ServletRequest object which
will give
you the IP address of the client. But I don't think you can access
ServletRequest object in relam class in tomcat. I know you can do it with JBoss
3. You may be able to write custom callback handlers and callback and
get
client IP to realm(a wild guess)
Regards,
Srinivas.
________________________________
From: "Aggarwal, Ajay" <[email protected]>
To: Tomcat Users List <[email protected]>
Sent: Wed, October 20, 2010 12:53:42 PM
Subject: RE: Source Address based Realms
bump... looking for ideas... anybody?
-----Original Message-----
From: Aggarwal, Ajay [mailto:[email protected]]
Sent: Tuesday, October 19, 2010 10:29 AM
To: Tomcat Users List
Subject: RE: Source Address based Realms
Sorry. I meant...
"Is there another way to achieve this, i.e. without using Realms or
mixing valve/filters with Realms?"
-----Original Message-----
From: Aggarwal, Ajay [mailto:[email protected]]
Sent: Tuesday, October 19, 2010 9:45 AM
To: [email protected]
Subject: Source Address based Realms
I need to treat my clients differently depending on where they came
from. I need to trust all requests coming locally (i.e. from
127.0.0.1/localhost) and not require them to authentication. However all
external requests need to go through authentication. Is there a way to
configure Realms in Tomcat to accommodate this?
Is there another way to achieve this, i.e. without using Realms or
missing valve/filters with Realms?
-Ajay
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]