tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dB. <dbl...@dblock.org>
Subject RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?
Date Fri, 04 Jun 2010 21:02:06 GMT
Yep. Let's see (using Waffle code - http://waffle.codeplex.com).

		String message = "TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==";
		byte[] messageBytes = Base64.decode(message);
		System.out.println(new String(messageBytes));
		System.out.println(NtlmMessage.getMessageType(messageBytes));

NTLMSSP ... (this is an NTLM message)
1 (type 1)

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Friday, June 04, 2010 3:07 PM
To: Tomcat Users List
Subject: Re: How can I get the user value in the request forwarded to my Tomcat in my Java
app?

dB. wrote:
> Request:
> --------------------------------
> GET / HTTP/1.1
> Authorization: Negotiate TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==
>>>> The browser is trying to get a page, and it sends a Negotiate token (it's
short, so looks like NTLM).

Do you mean that the encoded portion of the header actually "contains" 
an NTLM Type-1 message ?
(I browsed through the relevant RFCs, but they are a bit cryptic to get 
a quick clear idea of what happens here.)


---------------------------------------------------------------------
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


Mime
View raw message