[olug] PAM config

Christopher Cashell topher at zyp.org
Wed Oct 31 03:47:08 UTC 2001


On Mon, Oct 29, 2001 at 02:41:41PM -0600, Craig Wolf wrote:
> Any ideas on how to configure a webserver running RH 7.1 to use PAM
> for authentication on 1 website but to do no auth. on the other site?
> I am having some problems finding the information I need.  Even basic
> setup info on setting up auth to 2 different sites would be majorly
> helpful, if not info on using the ncpfs and pam NetWare auth modules.

I'll be honest and admit I've rarely had reason to include
authentication with the websites I've run.  However, I have done a bit
with it.  Additionally, while I make use of PAM on my *nix boxen, I've
never tried it with apache.

However, I do think I have a bit of information that will help you.
First of all, I think you'll need the mod_auth_pam module[1] for
apache, which should allow you to authenticate via PAM.  There are also
instructions for installtion[2] and configuration[3] of that module at
it's homepage.

As to your actual setup, I assume both of these websites are running on
the same machine, correct?

The easiest way to do things, I think, would be to install
mod_auth_pam, and then set up an .htaccess file in the root directory
of the site you want authenticated.  For the other site, you would
leave it without the .htaccess file, and thus it would be available to
anyone.

If you're looking for a good reference on general Apache setup, I'd
strongly suggest the O'Reilly & Associates book, "Apache: The
Definitive Guide".  Additionally, the Apache homepage[4] has a great
deal of good information on setting up and configuring things with
apache.

> Thanx in advance for any and all help!

I hope this helps.  If you run into specific problems or have other
questions, feel free to ask.

> Craig Wolf

[1] http://pam.sourceforge.net/mod_auth_pam/
[2] http://pam.sourceforge.net/mod_auth_pam/install.html
[3] http://pam.sourceforge.net/mod_auth_pam/configure.html
[4] http://www.apache.org

--
Christopher

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

For help contact olug-help at bstc.net - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at bstc.net
or `mail olug-unsubscribe at bstc.net < /dev/null`
(c)2001 OLUG http://www.olug.org

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_




More information about the OLUG mailing list