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