ajay chaudhari forced the electrons to say:
> Hi all,
> I am useing redhat linux 6.2 as a proxy server, I am
> useing NCSA_AUTH program for authencation, I have
> created a password file useing httpwd program.
> Now the users want to change their password.
Assuming we are talking about squid, I can suggest two ways:
1. Run a cron job every five minutes or so, that will generate the
password file for ncsa_auth from /etc/passwd. This might not be as easy
as it sounds, since ncsa_auth needs simple Unix crypt(3)ed passwords -
and RHL 6.2 uses MD5 passwords. Also, there are locking and security
issues in this.
2. Upgrade squid to the latest 2.3-STABLE. Use the pam_auth auth module
distributed with it, instead of ncsa_auth. Write a /etc/pam.d/squid file
(usually, just copying over one the existing ones like ftp or imap will
do) and use PAM to authenticate users for squid. Then the users can
change password from the bash command line, and squid will immediately
get to know of it.
If you have problems upgrading squid, let me know (on the list,
of course).
Binand
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/