request.getRemoteUser() was the method I was searching for! Thanks :)
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3731063
Sent from the Tomcat - User forum at Nabble.com.
---
Pay close attention to how to configure Jetspeed as a servlet engine
HTH,
Martin--
- Original Message -
From: "Rapthor" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 29, 2006 3:06 PM
Subject: Re: Get JDBCRealm's current user
>
> Sorry, here's what I
Why can't you just use request.getRemoteUser()? It provides the
username the user logged in with whether it be from BASIC auth or form
based auth.
--David
Rapthor wrote:
>Sorry, here's what I do:
>
>I have a web application and used Tomcat's Authentication mechanism called
>JDBCRealm. I had to
Sorry, here's what I do:
I have a web application and used Tomcat's Authentication mechanism called
JDBCRealm. I had to edit server.xml to do so (this is not really the details
I entered, it's just an example):
Then I created the according tables:
create table users
(
user_name varchar(15)
tion items..right?
I can better help you if you provide me some info on the ultimate goal,
HTH,
Martin--
- Original Message -
From: "Rapthor" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 29, 2006 12:18 PM
Subject: Re: Get JDBCRealm's current user
>
> Using the
Using the #InitialContext().lookup() method to get the DataSource, it seems
to get to the point that I find out the user connected to the database,
which in fact is another than the user logged in via JDBCRealm?! Am I right?
I wanted to get the user currently logged in, not the one using the
data
Sent: Wednesday, March 29, 2006 4:24 AM
Subject: Re: Get JDBCRealm's current user
>
> Okay, I think I nearly get it.
>
> What do I have to do to get the DataSource from within a JSP page? Get the
> "ServletContext"? There's no method to do a lookup for a DataSource
Okay, I think I nearly get it.
What do I have to do to get the DataSource from within a JSP page? Get the
"ServletContext"? There's no method to do a lookup for a DataSource with
ServletContext.
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a
L PROTECTED]>
To:
Sent: Monday, March 27, 2006 5:49 AM
Subject: Re: Get JDBCRealm's current user
>
> I didn't find the ConnectionHandle ... it's an interface but where is my
> instance of "ConnectionHandle"? Do I get it by using one of the Servlet's
&g
I didn't find the ConnectionHandle ... it's an interface but where is my
instance of "ConnectionHandle"? Do I get it by using one of the Servlet's
request, response or session objects?
--
View this message in context:
http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3607425
Sen
Just a Cursory answer from google-
ConnectionHandle.getMetaData().getUserName().
Anyone else?
Viel Gluck,
Martin-
- Original Message -
From: "Rapthor" <[EMAIL PROTECTED]>
To:
Sent: Saturday, March 25, 2006 8:14 AM
Subject: Get JDBCRealm's current user
Hello,
how is it possible to r
11 matches
Mail list logo