Hi, Henrik
I have changed /etc/passwd to /etc/shadow in
authenticate_program item in squid.conf, but still failed.
(When enternig password for a system user, the auth dialog
still pop out to ask me to enter user name and password.)
How to resolve the trouble?
Cheers,
Erik
----- 原文 -----
From: Henrik Nordstrom
To: maillist151@sohu.com
Cc: squid-users@squid-cache.org
Subject: Re: =?gb2312?q?=BB=D8=B8=B4=3ARe=3A=20=5Bsquid-users=5D=20PAM?= question
Sent: Mon Jul 15 17:09:54 CST 2002
> From the same install instructions:
>
> *
> * Note that some PAM modules (for example shadow password authentication)
> * requires the program to be installed suid root to gain access to the
> * user password database
> *
>
> Regards
> Henrik
>
>
> maillist151@sohu.com wrote:
> > Thanks, Henrik pal!
> >
> > I am using Squid-2.4-Stable4, Red Hat Linux 7.1,
> > Kernel 2.2.12.
> >
> > I use "gcc -o pam_auth pam_auth.c -lpam -ldl"
> > in dir src/auth_modules/PAM/, and
> > edit the /etc/pam.conf like this,
> >
> > --------
> > squid auth required /lib/security/pam_unix.so.1
> > squid account required /lib/security/pam_unix.so.1
> > --------
> >
> > and then I copy pam_auth from src/auth_modules/PAM/
> > to /usr/local/squid/libexec/squid/pam_auth,
> >
> > and then change authenticate_program in squid.conf to
> >
> > authenticate_program /usr/local/squid/libexec/squid/pam_auth /etc/passwd
> >
> > other auth options are the same as NCSA options. But I meet a
> > trouble, for example, the password of user "abc" is "bcd", but
> > when entering the username and password pair, it seems the password
> > is not correct, and the same auth dialog displays to ask me to
> > enter username and password. How to resolve the trouble, are there
> > something wrong with my configuration? (When running "./squid -NCd1", it
> > seems everything is Ok.)
> >
> >
> > Cheers,
> > Erik
> >
> >
> >
> >
> > ----- 原文 -----
> > From: Henrik Nordstrom
> > To: maillist151@sohu.com ;squid-users@squid-cache.org
> > Cc: squid-users@squid-cache.org
> > Subject: Re: [squid-users] PAM question
> > Sent: Mon Jul 15 14:58:58 CST 2002
> >
> > > On Monday 15 July 2002 06.41, maillist151@sohu.com wrote:
> > > > I can not find how to install and configure PAM
> > > > in Squid-2.4-Stable4. The same as NCSA? Where are
> > > > the docuemnts?
> > > >
> > > > I am using Red Hat Linux 7.1, Kernel 2.2.12.
> > >
> > > See squid_pam_auth.c
> > >
> > > Regards
> > > Henrik
>
Received on Tue Jul 16 2002 - 01:22:15 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:16 MST