Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 79590 invoked from network); 25 Jan 2010 20:37:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2010 20:37:13 -0000 Received: (qmail 53635 invoked by uid 500); 25 Jan 2010 20:37:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53552 invoked by uid 500); 25 Jan 2010 20:37:08 -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 53541 invoked by uid 99); 25 Jan 2010 20:37:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 20:37:08 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of William.Fulford@ngc.com designates 208.20.220.55 as permitted sender) Received: from [208.20.220.55] (HELO xmrt0101.northgrum.com) (208.20.220.55) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 20:36:59 +0000 Received: from XBHT0001.northgrum.com ([132.228.189.53]) by xmrt0101.northgrum.com with InterScan Message Security Suite; Mon, 25 Jan 2010 15:36:24 -0500 Received: from XBHTX101.northgrum.com ([134.223.192.22]) by XBHT0001.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 25 Jan 2010 15:35:33 -0500 Received: from XMBTX133.northgrum.com ([134.223.195.14]) by XBHTX101.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 25 Jan 2010 14:35:34 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA9DFD.F0BA2271" Subject: Return from getRemoteUser and isUserInRole Inconsistent Date: Mon, 25 Jan 2010 14:35:32 -0600 Message-ID: <942D6D831BC6804795094E1D71E5D7D1013C188C@XMBTX133.northgrum.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Return from getRemoteUser and isUserInRole Inconsistent Thread-Index: Acqd/eUgh7W8C1msTguRvR5ZZcqQCg== From: "Fulford, William" To: X-OriginalArrivalTime: 25 Jan 2010 20:35:34.0046 (UTC) FILETIME=[F1ADB3E0:01CA9DFD] ------_=_NextPart_001_01CA9DFD.F0BA2271 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for authentication. When I call HttpServletRequest.getRemoteUser() and HttpServletRequest.isUserInRole(), I get inconsistent results. Sometimes I get null for user and other times I get the user name. Sometimes I get false for isUserInRole() and other times I get true. More often than not I get null and false, but there is no discernable pattern. I always check after the user has been authenticated. Any ideas? Thanks, Doug Fulford Software Engineering Specialist (626)812-2248 ------_=_NextPart_001_01CA9DFD.F0BA2271--