File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem protecting resources with basic authentication