LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2003, 07:05 AM   #1
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
Can't get authenication with Apache


I am trying to set up apache to prompt for a username and password when a visitor tries to access the site. Here is what I have

<Directory>
AuthType Basic
AuthName "Site Intranet"
AuthUserFile /etc/httpd/conf/.htpasswd
Require valid-user
</Directory>

then I change to the /etc/httpd/conf directory and type:
htpasswd -m .htpasswd "username"

It asks for the password, then asks to type it again.

I also went VI .htpasswd and sure enough the user logons and passwords I created where there (the passwords encrypted of course). However when I access the site and put in my username and password, it won't take it.

I just keep getting a window and retype my password and username again, and again, and again, and again, and again, and again, and again, and again, and again ...... you get the idea.

after about three attempts I get the 401 error. I have also stopped and restarted apache after I made the changes to httpd.conf. Can anyone help me, I am getting really pissed off
 
Old 09-02-2003, 11:39 AM   #2
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
Do you have mod_auth loaded in your httpd.conf file?

LoadModule auth_module libexec/mod_auth.so

Otherwise you won't be able to authenticate using Basic authentication.

Also, don't forget to update your AddModule list as well:

AddModule mod_auth.c

Last edited by Rumblefish; 09-02-2003 at 11:42 AM.
 
Old 09-02-2003, 03:23 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
What about the permissions ?
What does your error log say ?
 
Old 09-10-2003, 03:34 PM   #4
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Rumblefish
Do you have mod_auth loaded in your httpd.conf file?

LoadModule auth_module libexec/mod_auth.so

Otherwise you won't be able to authenticate using Basic authentication.

Also, don't forget to update your AddModule list as well:

AddModule mod_auth.c
It says I have mod_auth.so loaded. I don't see that exact line.

How do I update the addmodule list?
 
  


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
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Domain Authenication Trainlogan Linux - Security 2 08-12-2005 09:10 AM
mail server responded - BAD AUTHENICATION macdafoe Linux - Networking 4 09-17-2003 08:40 PM
Secure Password Authenication danielrcummins Linux - Software 2 03-26-2003 09:05 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 AM.

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