ALthough this is not EXACTLY what you need to do, the basics are here; This
is from my NetSaint documentation, obviously, so you will need to make a few
changes.
HTH,
Geordon
+-------CUT HERE---------+
Configuring Web Server Authentication
The first step to configuring your web server for authentication is to make
sure the access.conf file contains an 'AuthOverride AuthConfig' statement in
it for the NetSaint CGI-BIN directory. If it doesn't, you'll have to add
something similiar to the following to your access.conf file. Note that you
will have to restart the web server in order for this change to take effect.
AllowOverride AuthConfig
order allow,deny
allow from all
Options ExecCGI
</Directory>
If you also want to require authentication for access the HTML pages for
NetSaint, add something similiar to the following in the access.conf file as
well.
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
The second step is to create a file named .htaccess in the root your CGI
directory (and optionally also you HTML directory) for NetSaint (usually
/usr/local/netsaint/sbin and /usr/local/netsaint/share, respectively). The
file(s) should have contents similiar to the following...
AuthName "NetSaint Access"
AuthType Basic
AuthUserFile /usr/local/netsaint/etc/htpasswd.users
require valid-user
Setting Up Authenticated Users
Now that you've configured the web server to require authentication for
access to the CGIs, you'll need to configure users who can acess the CGIs.
This is done by using the htpasswd command supplied with Apache.
Running the following command will create a new file called htpasswd.users
in the /usr/local/netsaint/etc directory. It will also create an
username/password entry for netsaintadmin. You will be asked to provide a
password that will be used when netsaintadmin authenticates to the web
server.
htpasswd -c /usr/local/netsaint/etc/htpasswd.users netsaintadmin
Continue adding more users until you've created an account for everyone you
want to access the CGIs. Use the following command to add additional users,
replacing <username> with the actual username you want to add. Note that
the -c option is not used, since you already created the initial file.
htpasswd /usr/local/netsaint/etc/htpasswd.users <username>
Okay, so you're done with the first part of what needs to be done. If you
point your web browser to your NetSaint CGIs you should be asked for a
username and password. If you have problems getting user authentication to
work at this point, read your webserver documentation for more info.
+-------CUT HERE--------+
----- Original Message -----
From: SK
To: suse-linux-e@suse.com
Sent: Thursday, May 03, 2001 12:42 AM
Subject: [SLE] Authcations
Hi! Linux Friends ...
I need to protect my phpMyAdmin site with a password Authcations. But it was
fail ..I need some help ..
AllowOverride All
</Directory>
Best Regards,
SKLIM