implementing custom JDBCRealm and programmatic authentication

2003-05-29 Thread jarl.age.aanonsen
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

RE: custom JDBCRealm

2003-03-24 Thread Robert Parker
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

Re: Custom JDBCRealm

2003-03-22 Thread Bill Barker
[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

RE: custom JDBCRealm

2003-03-22 Thread Carl Maib
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

RE: custom JDBCRealm

2003-03-22 Thread p niemandt
[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

Re: custom JDBCRealm

2003-03-22 Thread Carl Maib
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

Re: custom JDBCRealm

2003-03-22 Thread p niemandt
, 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

Re: custom JDBCRealm

2003-03-22 Thread Bill Barker
: 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

Re: custom JDBCRealm

2003-03-22 Thread James Carman
(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

Custom JDBCRealm

2003-03-21 Thread awc
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

RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
: 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

Re: Custom JDBCRealm

2003-03-21 Thread Carl Maib
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

Re: Custom JDBCRealm

2003-03-21 Thread awc
: 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

Re: Custom JDBCRealm

2003-03-21 Thread awc
: 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

Re: Custom JDBCRealm

2003-03-21 Thread awc
, 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

RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
: 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

RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
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

Creating custom JDBCrealm

2002-01-31 Thread Slapar Jernej
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]