LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-12-2008, 06:33 PM   #1
Macphersonb
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
Getting Error with AuthDBMUserFile


I'm trying to use DBM to authenticate from Apache, here is my configuration file:
<VirtualHost 142.25.97.241:80>
ServerName site5.servermonk.org
DocumentRoot /var/www/site5

<Directory "/var/www/site5/">

AuthType Basic
AuthName "Group 1 Check"
AuthDBMUserFile /var/www/database
AuthDBMGroupFile /var/www/database

<Limit GET POST>
Require group group-name groupA
</Limit>
</Directory>
</VirtualHost>

and i'm getting the error when logging in with user macphersonb

[Wed Nov 12 16:30:38 2008] [error] [client 142.25.97.6] access to / failed, reason: verification of user id 'macphersonb' not configured

Any ideas?
 
Old 11-13-2008, 11:04 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Quote:
[Wed Nov 12 16:30:38 2008] [error] [client 142.25.97.6] access to / failed, reason: verification of user id 'macphersonb' not configured
It's right there! Have you got any authentication mechanism, for example, LDAP, setup?

On the other hand, try adding the www or www-data or http user group to the user macphersonb.

Please fill in your profile, listing your distro, so we can tailor the answer for you.

Last edited by irishbitte; 11-13-2008 at 11:06 AM.
 
Old 11-13-2008, 11:08 AM   #3
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Just re-read your OP:

Quote:
AuthType Basic
AuthName "Group 1 Check"
AuthDBMUserFile /var/www/database
AuthDBMGroupFile /var/www/database

<Limit GET POST>
Require group group-name groupA
</Limit>
</Directory>
</VirtualHost>
Is macphersonb a member of groupA? Or listed in the file "AuthDBMUserFile /var/www/database"
 
Old 11-13-2008, 11:39 AM   #4
Macphersonb
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by irishbitte View Post
Just re-read your OP:



Is macphersonb a member of groupA? Or listed in the file "AuthDBMUserFile /var/www/database"
Yeah, i used the perl script "dbmmanage" to add the users, and all of them are members of groupA

What's weird is that this error doesn't change, no matter what i do, if the database file is not there, or if it's empty i get the same "verification of user is not configured"

My distro changes from project to project, this project happens to be using centos v5
 
Old 11-13-2008, 12:33 PM   #5
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Is there an apache module that needs to be loaded?

Also, I notice that

Quote:
AuthDBMUserFile /var/www/database
AuthDBMGroupFile /var/www/database
are the same file for both user and group, is this the way it should be?
 
Old 11-13-2008, 12:42 PM   #6
Macphersonb
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Upon further consultation with the instructor, it's been relieved that this part of the project is impossible with the tools available for this assignment. Dbmmanage has been deprecated and does not operate as expected with new Apache installations.

it -is- possible to do with htdbm, but that's another project.

Thank you for all your help!
 
Old 11-13-2008, 03:06 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Good stuff, glad you resolved it one way or the other.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 03:46 PM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
updating new installation of 9.3 ERROR...ERROR...ERROR Morbid SUSE / openSUSE 3 08-15-2005 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration