You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sergio Stateri Jr <se...@globo.com> on 2006/04/10 17:11:29 UTC
Remote User with request.getRemoteUser()
Hi,
I?m having NTLM authentication problems with IIS 6 (over Windows 2003
Server) and Tomcat 5.5.16, using JK1.2 conector:
- In a ASP page, the code
<%=Request.ServerVariable("REMOTE_USER")%>
prints the Windows logged user, but in Tomcat, the code
<%=request.getRemoteUser()%> prints "null"
and the code
<%=request.getHeader("IIS-REMOTE-USER")%> prints "null" too.
Here?s my workers2.properties from JK2 :
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=D:\Tomcat559\temp\jk2.shm
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map webapps to the Web server uri space
[uri:/embaixador/*]
And here?s a piece of my Tomcat?s server.xml :
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
If in ASP the remote user name is printed, why the same code doesn?t
work in java ?
Another information: The same configuration works fine over Windows 2000
Professional and Windows XP. This error only occurs over Windows 2003 Server.
Thanks in advance for any help.
Sergio Stateri Jr.
sergio.stateri@globo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Remote User with request.getRemoteUser()
Posted by Sergio Stateri Jr <se...@globo.com>.
Ok, It?s working now ! Thanks a lot.
Sergio Stateri Jr.
sergio.stateri@globo.com
'>'-- Mensagem Original --
'>'Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
'>'Date: Mon, 10 Apr 2006 13:52:23 -0400
'>'From: David Smith <dn...@cornell.edu>
'>'To: Tomcat Users List <us...@tomcat.apache.org>
'>'Subject: Re: Remote User with request.getRemoteUser()
'>'
'>'
'>'By default, tomcat drops external headers like REMOTE_USER in favor
of
'>'it's own auth scheme. You can change this by setting the attribute
'>'tomcatAuthentication="false" in your AJP connector definition in
'>'server.xml and restarting.
'>'
'>'--David
'>'
'>'Sergio Stateri Jr wrote:
'>'
'>'> Hi,
'>'>
'>'> I?m having NTLM authentication problems with IIS 6 (over Windows
2003
'>'>Server) and Tomcat 5.5.16, using JK1.2 conector:
'>'> - In a ASP page, the code
'>'>
'>'><%=Request.ServerVariable("REMOTE_USER")%>
'>'>
'>'> prints the Windows logged user, but in Tomcat, the code
'>'>
'>'><%=request.getRemoteUser()%> prints "null"
'>'>
'>'> and the code
'>'>
'>'><%=request.getHeader("IIS-REMOTE-USER")%> prints "null" too.
'>'>
'>'> Here?s my workers2.properties from JK2 :
'>'>
'>'>[shm:]
'>'>info=Scoreboard. Required for reconfiguration and status with multiprocess
'>'>servers
'>'>file=D:\Tomcat559\temp\jk2.shm
'>'>size=1048576
'>'>
'>'>[channel.socket:localhost:8009]
'>'>info=Ajp13 forwarding over socket
'>'>tomcatId=localhost:8009
'>'>
'>'># Map webapps to the Web server uri space
'>'>[uri:/embaixador/*]
'>'>
'>'> And here?s a piece of my Tomcat?s server.xml :
'>'>
'>'> <!-- Define an AJP 1.3 Connector on port 8009 -->
'>'> <Connector port="8009"
'>'> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
'>'>/>
'>'>
'>'> If in ASP the remote user name is printed, why the same code doesn?t
'>'>work in java ?
'>'>
'>'> Another information: The same configuration works fine over Windows
2000
'>'>Professional and Windows XP. This error only occurs over Windows 2003
Server.
'>'>
'>'> Thanks in advance for any help.
'>'>
'>'> Sergio Stateri Jr.
'>'> sergio.stateri@globo.com
'>'>
'>'>
'>'>
'>'>---------------------------------------------------------------------
'>'>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
'>'>For additional commands, e-mail: users-help@tomcat.apache.org
'>'>
'>'>
'>'>
'>'
'>'---------------------------------------------------------------------
'>'To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
'>'For additional commands, e-mail: users-help@tomcat.apache.org
'>'
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Remote User with request.getRemoteUser()
Posted by David Smith <dn...@cornell.edu>.
By default, tomcat drops external headers like REMOTE_USER in favor of
it's own auth scheme. You can change this by setting the attribute
tomcatAuthentication="false" in your AJP connector definition in
server.xml and restarting.
--David
Sergio Stateri Jr wrote:
> Hi,
>
> I?m having NTLM authentication problems with IIS 6 (over Windows 2003
>Server) and Tomcat 5.5.16, using JK1.2 conector:
> - In a ASP page, the code
>
><%=Request.ServerVariable("REMOTE_USER")%>
>
> prints the Windows logged user, but in Tomcat, the code
>
><%=request.getRemoteUser()%> prints "null"
>
> and the code
>
><%=request.getHeader("IIS-REMOTE-USER")%> prints "null" too.
>
> Here?s my workers2.properties from JK2 :
>
>[shm:]
>info=Scoreboard. Required for reconfiguration and status with multiprocess
>servers
>file=D:\Tomcat559\temp\jk2.shm
>size=1048576
>
>[channel.socket:localhost:8009]
>info=Ajp13 forwarding over socket
>tomcatId=localhost:8009
>
># Map webapps to the Web server uri space
>[uri:/embaixador/*]
>
> And here?s a piece of my Tomcat?s server.xml :
>
> <!-- Define an AJP 1.3 Connector on port 8009 -->
> <Connector port="8009"
> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
>/>
>
> If in ASP the remote user name is printed, why the same code doesn?t
>work in java ?
>
> Another information: The same configuration works fine over Windows 2000
>Professional and Windows XP. This error only occurs over Windows 2003 Server.
>
> Thanks in advance for any help.
>
> Sergio Stateri Jr.
> sergio.stateri@globo.com
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Remote User with request.getRemoteUser()
Posted by abdurrahman sahin <ab...@argela.com.tr>.
hi;
why dont you try to print all http-headers, so that you can see each header
and its corresspoing value.
http://asahin.net
-----Original Message-----
From: Sergio Stateri Jr [mailto:sergio.stateri@globo.com]
Sent: Monday, April 10, 2006 6:11 PM
To: users@tomcat.apache.org
Subject: Remote User with request.getRemoteUser()
Hi,
I?m having NTLM authentication problems with IIS 6 (over Windows 2003
Server) and Tomcat 5.5.16, using JK1.2 conector:
- In a ASP page, the code
<%=Request.ServerVariable("REMOTE_USER")%>
prints the Windows logged user, but in Tomcat, the code
<%=request.getRemoteUser()%> prints "null"
and the code
<%=request.getHeader("IIS-REMOTE-USER")%> prints "null" too.
Here?s my workers2.properties from JK2 :
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=D:\Tomcat559\temp\jk2.shm
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map webapps to the Web server uri space
[uri:/embaixador/*]
And here?s a piece of my Tomcat?s server.xml :
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
If in ASP the remote user name is printed, why the same code doesn?t
work in java ?
Another information: The same configuration works fine over Windows 2000
Professional and Windows XP. This error only occurs over Windows 2003
Server.
Thanks in advance for any help.
Sergio Stateri Jr.
sergio.stateri@globo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org