Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 51893 invoked from network); 4 Jun 2010 21:04:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 21:04:38 -0000 Received: (qmail 93863 invoked by uid 500); 4 Jun 2010 21:04:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 93777 invoked by uid 500); 4 Jun 2010 21:04:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 93768 invoked by uid 99); 4 Jun 2010 21:04:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 21:04:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.208.4.195] (HELO mout.perfora.net) (74.208.4.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 21:04:30 +0000 Received: from winxedgeus02.exchange.xchg (winxedgeus02.lxa.perfora.net [172.23.130.34]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0M7p5U-1PFva50EEq-00vZwb; Fri, 04 Jun 2010 17:04:09 -0400 Received: from winxhubus02.exchange.xchg (172.23.130.14) by winxedgeus02.exchange.xchg (172.23.130.34) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 4 Jun 2010 17:02:16 -0400 Received: from winxbeus13.exchange.xchg ([172.23.130.73]) by winxhubus02.exchange.xchg ([172.23.130.14]) with mapi; Fri, 4 Jun 2010 17:02:10 -0400 From: dB. To: Tomcat Users List Date: Fri, 4 Jun 2010 17:02:06 -0400 Subject: RE: How can I get the user value in the request forwarded to my Tomcat in my Java app? Thread-Topic: How can I get the user value in the request forwarded to my Tomcat in my Java app? Thread-Index: AcsEGTYkUeYZNijeQaWAVNMdWDfBdQAD92CQ Message-ID: References: <45572F79660DDC429F6B44582360A9AB010ABF57BB@PHDEXMB01.txhealth.org><45572F79660DDC429F6B44582360A9AB010ABF5A84@PHDEXMB01.txhealth.org>,<4BFFF1F0.8090104@kippdata.de>,<45572F79660DDC429F6B44582360A9AB0108A45AA6@PHDEXMB01.txhealth.org> <45572F79660DDC429F6B44582360A9AB010ABF5CA4@PHDEXMB01.txhealth.org> <45572F79660DDC429F6B44582360A9AB010ABF61DC@PHDEXMB01.txhealth.org>,<4C06CD3D.7080606@ice-sa.com> <45572F79660DDC429F6B44582360A9AB0108A45AB5@PHDEXMB01.txhealth.org> <45572F79660DDC429F6B44582360A9AB010AD951B7@PHDEXMB01.txhealth.org> <45572F79660DDC429F6B44582360A9AB010AD9523B@PHDEXMB01.txhealth.org> <45572F79660DDC429F6B44582360A9AB010AD952F8@PHDEXMB01.txhealth.org> <4C081CEE.2040707@ice-sa.com> <45572F79660DDC429F6B44582360A9AB010AD9532F@PHDEXMB01.txhealth.org> <4C08F0F1.6030103@ice-sa.com> <45572F79660DDC429F6B44582360A9AB010AD9533D@PHDEXMB01.txhealth.org> <4C094EC0.9000101@ice-sa.com> In-Reply-To: <4C094EC0.9000101@ice-sa.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-provags-id: V01U2FsdGVkX18TXwrZvXck6t+9su7fdIo0QcYRAjsY5DRK0Z2 mnvB0I0pNQ9l+rWzdgEQHaM/P4fBiaCAxaWJ/gVzsXnG2PZ1Y Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Yep. Let's see (using Waffle code - http://waffle.codeplex.com). String message =3D "TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAAD= w=3D=3D"; byte[] messageBytes =3D 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=20 Moscow|Geneva|Seattle|New York -----Original Message----- From: Andr=E9 Warnier [mailto:aw@ice-sa.com]=20 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 To= mcat in my Java app? dB. wrote: > Request: > -------------------------------- > GET / HTTP/1.1 > Authorization: Negotiate TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgK= AAAADw=3D=3D >>>> The browser is trying to get a page, and it sends a Negotiate token (i= t's short, so looks like NTLM). Do you mean that the encoded portion of the header actually "contains"=20 an NTLM Type-1 message ? (I browsed through the relevant RFCs, but they are a bit cryptic to get=20 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