Nevermind. I found the answer.

Don't worry, I am slapping myself on the hand for not checking the archive
first :)

http://marc.theaimsgroup.com/?l=tomcat-user&m=106070071117870&w=2

-----Original Message-----
From: Robert Priest [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:46 PM
To: '[EMAIL PROTECTED]'
Subject: getRemoteUser() and Basic Auth


Hello,

Can anyone tell me why my getRemoteUser() call is coming back null when I
turn Basic Authentication on in IIS?


I know that IIS\the isapi redirector2 is sending the information, but it
seems as though 
the RemoteUser() property of the Request is not being set. 

Is there something I need to do in order to turn that on?

Here is the information that is being forwarded by the IIS\isapi redirector2
( I ran netmon just to show that the filter was sending the info) to tomcat.
It is followed by the information retrieved by the RequestDumperValve:


000001B0  22 00 A0 03 00 0D 67 7A 69 70 2C 20 64 65 66 6C ".....gzip,.defl
000001C0  61 74 65 00 A0 08 00 01 30 00 03 00 15 62 65 6E ate.....0....ben
000001D0  74 6C 65 79 5C 72 6F 62 65 72 74 2E 70 72 69 65 tley\robert.prie
000001E0  73 74 00 04 00 05 42 61 73 69 63 00 06 00 11 77 st....Basic....w
000001F0  64 65 76 2D 70 72 69 65 73 74 31 3A 38 30 31 39 dev-priest1:8019
00000200  00 FF                                           ..              


from the RequestDumperValve:

RequestDumperValve[Standalone]:             header=accept=image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, application/x-shockwave-flash,
*/*
RequestDumperValve[Standalone]:             header=accept-language=en-us
RequestDumperValve[Standalone]:             header=connection=Keep-Alive
RequestDumperValve[Standalone]:             header=host=localhost
RequestDumperValve[Standalone]:             header=user-agent=Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)
RequestDumperValve[Standalone]:             header=authorization=Basic ...
RequestDumperValve[Standalone]:             header=if-modified-since=Thu, 27
Mar 2003 12:21:50 GMT
RequestDumperValve[Standalone]:
header=if-none-match=W/"1020-1048767710000"
RequestDumperValve[Standalone]:             header=accept-encoding=gzip,
deflate
RequestDumperValve[Standalone]:             header=content-length=0
RequestDumperValve[Standalone]:             locale=en_US
RequestDumperValve[Standalone]:             method=GET
RequestDumperValve[Standalone]:           pathInfo=null
RequestDumperValve[Standalone]:           protocol=HTTP/1.1
RequestDumperValve[Standalone]:        queryString=null
RequestDumperValve[Standalone]:         remoteAddr=127.0.0.1
RequestDumperValve[Standalone]:         remoteHost=127.0.0.1
RequestDumperValve[Standalone]:         remoteUser=null
RequestDumperValve[Standalone]: requestedSessionId=null
RequestDumperValve[Standalone]:             scheme=http
RequestDumperValve[Standalone]:         serverName=localhost
RequestDumperValve[Standalone]:         serverPort=80
RequestDumperValve[Standalone]:        servletPath=null
RequestDumperValve[Standalone]:           isSecure=false

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to