wood burning stoves 2.0*
The moose likes Java in General and the fly likes authenticate using apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "authenticate using apache" Watch "authenticate using apache" New topic
Author

authenticate using apache

Bhumika Thakkar
Ranch Hand

Joined: Apr 18, 2005
Posts: 79
Hi all,

I am using apache's htaccess to authenticate my clients. In my servlet how will I get who logged in? I need to know the user group/role.

Bhumika.


SCBCD (Preparing) <br />SCWCD, 82%<br />SCJP, 90%
Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
Did you define a user.properties file with userid=password? I don't know how it works with apache, but with JBoss (which uses apache) you also have a role.properties file. In there, you define userid=role. Then the role shows-up in the web.xml where you define your protected components. You can say "is user in role" when in your servlet.

--Dale--
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: authenticate using apache
 
Similar Threads
authentication using apache
authentication with out using j_security_check
de-authenticate
Tomcat DataSource Realm with Encrypt Pwd
authentication with out using j_security_check