tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Jose" <rjos...@comcast.net>
Subject Re: Getting LOGON_USER from the header
Date Tue, 30 Aug 2005 18:51:44 GMT
Well, I was partially correct.  It works perfectly when getting the remote 
user in a jsp page.  What I really want to do is get the remote user in a 
filter.  Basically, I have a filter set up to see if the user is logged in. 
If they are not, I want to get their remote user and check it to see if I 
can log them in seamlessly.  I would prefer not to have to get the remote 
user in the jsp page and then submit a page, just to have the user not exist 
and have to come back to the page.

Does anyone know how to get the remote user or LOGON_USER in the filter?

Thanks
Rob
----- Original Message ----- 
From: "Robert Jose" <rjose89@comcast.net>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, August 30, 2005 7:53 AM
Subject: Re: Getting LOGON_USER from the header


> Thanks David, that worked perfectly.  I appreciate your help.
>
> Rob
>
> ----- Original Message ----- 
> From: "David Smith" <dns4@cornell.edu>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Monday, August 29, 2005 6:16 PM
> Subject: Re: Getting LOGON_USER from the header
>
>
>> By default, tomcat ignores the REMOTE_USER header from Apache or IIS in 
>> favor if it's own authentication.  To get tomcat to accept the IIS 
>> authentication info, add  this attribute to the <Connector/> element in 
>> server.xml:
>>
>> tomcatAuthentication="false"
>>
>> --David
>>
>> Robert Jose wrote:
>>
>>> Thanks for the response Gurumoorthy, but I get null for a result.
>>>
>>> Rob J.
>>>
>>> ----- Original Message ----- From: "Gurumoorthy" 
>>> <g.raghupathy@btinternet.com>
>>> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>>> Sent: Monday, August 29, 2005 2:40 PM
>>> Subject: Re: Getting LOGON_USER from the header
>>>
>>>
>>>> request.getRemoteUser()
>>>> ----- Original Message ----- From: "Robert Jose" <rjose89@comcast.net>
>>>> To: "Tomcat User" <tomcat-user@jakarta.apache.org>
>>>> Sent: Monday, August 29, 2005 10:44 PM
>>>> Subject: Getting LOGON_USER from the header
>>>>
>>>>
>>>> Hello
>>>> I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using 
>>>> the isapi redirect dll.  This seems to be working well and configured 
>>>> correctly.
>>>>
>>>> Now I am trying to get the LOGON_USER from the header.  I want the 
>>>> windows id of the user that is hitting my web page.  I am developing an 
>>>> Intranet site and want to do seamless login based on who the user 
>>>> logged into their windows machine.  I know I can do this by using the 
>>>> command request.ServerVariables("LOGON_USER") in ASP.  I also was able 
>>>> to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 
>>>> (using the dll they provide).
>>>>
>>>> Does anyone know how I can get this information using Tomcat?  I would 
>>>> be greatly appreciative.
>>>>
>>>> Thanks
>>>> Rob J.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message