Apache: using system passwords
Darryl Clarke
smartssa at gmail.com
Sun Jul 31 18:25:57 UTC 2005
On 7/31/05, Stephen R Laniel <steve at laniels.org> wrote:
> On Sun, Jul 31, 2005 at 08:51:15AM -0400, Darryl Clarke wrote:
> > libapache-mod-auth-pam
> > libapache2-mod-auth-pam
> > -- Apache module to authenticate web access using PAM
>
> Cool! Here's a question that just occurred to me, though:
> the Apache site uses virtual hosts. For hackish reasons, the
> system passwords are all of the form username-domain-tld,
> for instance 'johnsmith-example-com' for user johnsmith on
> example.com. If I set up Apache to authenticate using PAM,
> will every shell user be authenticated within every virtual
> host? I only want johnsmith-example-com to have access to
> the virtual host example.com, not the virtual host foo.com.
>
You can specify groups to authenticate against.
For example, if you put johnsmith-example-com in the group example-com
you can make apache require the user be a member of that group,
instead of just the whole set of system users.
--
~ Darryl ~ smartssa at gmail.com
http://smartssa.com / http://darrylclarke.com
More information about the ubuntu-users
mailing list