isUserInRole question

2005-02-02 Thread Denny Lee
Hello, I am trying to use isUserInRole in an app within Tomcat. The problem is that I consistently get false as the return regardless of what I pass in. I am using J2SE 1.4.2_06 and Tomcat 5.0. Here is the code and any help would be great: import java.io.*; import javax.servlet.*; import

Re: isUserInRole question

2005-02-03 Thread Denny Lee
Hello, Thanks for your reply. When I use IE to bring up the page I get a dialogbox asking for user name and password. If I put in a user name and password of a user on the workstation I can login. The page shows the correct user name and says that I have successfully logged in. But I get 2

IsUserInRole Question

2005-02-03 Thread Denny Lee
Here is my web.xml and server.xml. Thank you for your help! ?xml version=1.0 encoding=ISO-8859-1? web-app display-nameNtlmHttpAuthExample/display-name descriptionNtlmHttpAuthExample/description servlet servlet-nameNtlmHttpAuthExample/servlet-name

isUserInRole

2005-02-04 Thread Denny Lee
Joby, Thanks for you reply. I have not tried request.isUserInRole(Denny). I was under the impression that role has to do with being admin or user. I can get the user name through the request.getRemoteUser() but I am still stuck with the role thing.

RE: isUserInRole

2005-02-07 Thread Denny Lee
Hello Joby, My problem is not getting user name and logging in but rather I can't get the user's role using the function isUserInRole(). For whatever reason isUserInRole always returns a false. I tried isUserInRole(admin), isUserInRole(Administrarors), isUserInRole(Users) but I get false for all

Tomcat and IIS Authorization

2005-03-01 Thread Denny Lee
Hello All, I am creating a web app that has users and admins and I need to limit certain configuration pages only to admins. I must use NTLM to authenticate users into the web site and somehow get the credential to determine if the user has sufficient access or not. How can I do this? Can I do

Re: Tomcat and IIS Authorization

2005-03-01 Thread Denny Lee
, Allistair. -Original Message- From: Denny Lee [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 17:26 To: tomcat-user@jakarta.apache.org Subject: Tomcat and IIS Authorization Hello All, I am creating a web app that has users and admins and I need to limit