Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 08-02-2004, 12:45 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
debian / apache / http authentication

the examples i have found to setup http authentication with apache don't exactly seem like they go with this debian woody/apache setup.

can anyone tell me how to setup basic http authentication with debian?
__________________
Mike
sde is offline   Reply With Quote
Old 08-02-2004, 12:59 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
here is how i did it, but it does not work yet:
Code:
# dbmmanage /tmp/users add username password
# mv /tmp/users /my/path
then i made a .htaccess file:
Code:
AuthType	basic
AuthName	"Only for authorized personnel"
AuthUserFile	/my/path/users
Require	valid-user
it prompts for a username/password, but it will not authorize.

anything look wrong?
__________________
Mike
sde is offline   Reply With Quote
Old 08-02-2004, 01:58 PM   #3 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
I don't know anything about debian or dbmmanage, but I thought you needed htpasswd(sp?) to setup the file storing username, passwords. Is dbmmanage handling this functionality?
technobard is offline   Reply With Quote
Old 08-02-2004, 02:49 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
after reading a bit more i found out that dbmmanage makes an encrypted version of the password file. in my example above, the file line should be: AuthDBMUserFile if you are using a dbm file.

either way, i can't get it to work. if i don't use the dbmmanage to encrypt the file, what is the format of a normal htpasswd file? is it:

user:password
user:password
__________________
Mike
sde is offline   Reply With Quote
Old 08-02-2004, 02:55 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
u got me on the right track:
Code:
$ htpasswd -c .htpasswd name-of-user
i don't need to encrypt it, this works great.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian and apache/php/mysql sde Linux / BSD / OS X 4 02-07-2003 01:08 PM
fresh apache install sde Linux / BSD / OS X 3 01-05-2003 10:53 AM
restarting apache in debian. sde Linux / BSD / OS X 4 06-22-2002 12:27 AM
debian install report sde Linux / BSD / OS X 4 05-09-2002 04:56 PM


All times are GMT -8. The time now is 12:59 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting