This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes problem protecting resources with basic authentication 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 » Products » Tomcat
Bookmark "problem protecting resources with basic authentication" Watch "problem protecting resources with basic authentication" New topic
Author

problem protecting resources with basic authentication

Shraddha Jain
Greenhorn

Joined: Feb 02, 2006
Posts: 27
i want to protect some resources on my web page using basic
authentication.
i have defined groups in the file \etc\group

defined usrs and passwords in \usr\local\apache\passwd\passwords file
in the httpd conf file i have specifie dthe follwing directive for each
of the directories i want to protect
<Directory "/home/confidential>
AuthName "confidential"
Authtype Basic
AuthUserFile \usr\local\apache\passwd\passwords
AuthGroupFile \etc\group
require group admin
</Directive>
the group file looks like this


admin: x:998:abc,xyz


after restarting the server, when i try to acess this file , i get the
dialog box challenging for the user name password, but i cannot login
as abc or xyz who are authorised to recieve the document.


where am i going wrong?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: problem protecting resources with basic authentication
 
Similar Threads
Basic authentication using custom Login Module in WAS 6.1
Conditionally protecting app by IP range
Servlet 404 and JkMount configuration - encountered some problem (Apache/Tomcat)
Which one is first? Authentication/Authorisation
Apache HTTP 403 Response