Another approach is to use an auth_mod module for Apache.  I use the shadow,
but there are others.  Specifically:

Do a search for the mod_auth_shadow plug-in for Apache and download it.  I
found mine at http://sourceforge.net/project/showfiles.php?group_id=11283

mod_auth_shadow-2.1

Once downloaded:

tar xvfs mod_auth_shadow-2.1.tar.gz
cd mod_auth_shadow-2.1
make all
make install

Edit your http.conf and add the following two lines in your listed config:

SuexecUserGroup dspam dspam
AuthShadow on

Remove the AuthUserFile line, save the file then:

service httpd restart

This will then read your shadow file on your server.  This is very helpful
as you wont need to make any further modification to the .htpasswd file when
you add a user or change a password.

Hope that helps.

Brad
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
mahashakti89
Sent: Wednesday, March 07, 2007 6:14 AM
To: [email protected]
Subject: [dspam-users] access to the webfrontend & dspam ControlCenter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !

 After setting up dspam as a content filter, it works now O.K, I am
trying to set up the webfrontend, but ....
  if I turn my browser to https://localhost/dspam/html/dspam.cgi , I am
prompted for a username and a password ... Seems quite natural
 I tried it with User root and Password xxxx, but it doesn't work ...  I
am not familiar with apache and servers, I am on a standalone machine
with a RTC connection . I think something is wrong with my httpd.conf ...

Could need some help.

I added this section from a Debian specific Howto in my httpd.conf :

 <Directory "/var/www/dspam/html">
                Options FollowSymLinks ExecCGI
                AllowOverride None
                Order deny,allow
                Deny from all
                AddHandler cgi-script .cgi .pl
                SSLRequireSSL
                AuthType Basic
                AuthName "DSPAM Control Center"
                AuthUserFile /var/www/dspam/etc/htpasswd
                Require valid-user
                Satisfy Any
        </Directory>


mahashakti89
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7rqbI8R+aqI0N8ERAtlcAKCU3G7BPzO4rygLSL21RJ+AS0hcpACfQSpT
rLOo7AJv2QqmPaQLkrLXsaY=
=UzTW
-----END PGP SIGNATURE-----


!DSPAM:45eeba52312417136010556!

Reply via email to