I am considering to implement a custom JDBCRealm.
It should make available a method such as
boolean authenticate(String username)
perhaps in a custom Principal class.
The method should log in (authenticate) the user and return true,
if user exists (with correct roles), false otherwise.
Can
Users List
Subject: Re: custom JDBCRealm
You don't need to implement a custom realm for this. You can use a servlet
filter. The userid of the currently logged in user can be accessed via
request.getUserPrincipal().getName(). You can use this information to
lookup the other user data
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
that it can see the Catalina classes.
please let me know if you get this solution to work. thanks!
- Original Message -
From: awc [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
get desparate, you'll try anything!
- Original Message -
From: p niemandt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 12:54 PM
Subject: RE: custom JDBCRealm
Have you tried $CATALINA_HOME/webapps/YourWebApp/WEB-INF/classes ?
On Sat, 2003-03-22
, 2003 12:54 PM
Subject: RE: custom JDBCRealm
Have you tried $CATALINA_HOME/webapps/YourWebApp/WEB-INF/classes ?
On Sat, 2003-03-22 at 17:40, Carl Maib wrote:
bill,
i have tried placing my source in common/classes, common/lib, shared/lib
and shared/classes with no luck. depending
: awc [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
(if
it doesn't already exist).
- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 11:45 PM
Subject: Re: custom JDBCRealm
In theory, common/{classes, lib} should work, but I've never tried it.
shared/{classes, lib} won't work, and WEB
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
org.apache.catalina.realm.RealmBase class.
This custom class will have more initializing parameters too
: Friday, March 21, 2003 2:42 PM
To: 'Tomcat Users List'
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
the necessary objects in catalina.jar.
please let me know if you get this solution to work. thanks!
- Original Message -
From: awc [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff
: Friday, March 21, 2003 2:42 PM
To: 'Tomcat Users List'
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
org.apache.catalina.realm.RealmBase class
, 2003 4:41 PM
Subject: Custom JDBCRealm
Hi,
I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
org.apache.catalina.realm.RealmBase class
: Friday, March 21, 2003 3:06 PM
To: Tomcat Users List
Subject: Re: Custom JDBCRealm
may be this is dumb question. So do you run two filters? one
for authticate and
to check authorization and other to load the customo objects??
Thanks Matt..
.anil
// user authenticated
a
Tomcat class and create your own authenticator - you'll have to add tomcat
jars to your project.
HTH,
Matt
-Original Message-
From: Raible, Matt
Sent: Friday, March 21, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Custom JDBCRealm
Nope, I just use form-based authentication
Hi ya all!
I'm wondering what classes I would have to override (implement) if I wanted to make a
custom Realm?
In fact what I'd like to do is add some functionality to existing JDBCrealm...
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
18 matches
Mail list logo