Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Change Email User Password from PHP


Message #1 by "Ganesan" <ganesh15@m...> on Mon, 24 Sep 2001 07:26:51
You don't specifically "use" PAM.  On Linux, all authentication is
automatically handled by PAM.  Basically, shell out the passwd command with
the stdin parameter.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Ganesan" <ganesh15@m...>
To: "professional php" <pro_php@p...>
Sent: Wednesday, September 26, 2001 6:52 AM
Subject: [pro_php] Re: Change Email User Password from PHP


> Thank you for your reply,
>
> How do I use PAM in PHP. Is there any sample code. Sorry I am newbie for
> PHP and Linux.
>
> regards,
>
> Ganesh
> > First you have to understand how the respective applications work.
> >
> > Sendmail doesn't use passwords.  Pop is what uses passwords.
> >
> > POP doesn't change passwords.  It authenticates usernames and passwords
> via
> > PAM.  It has no ability to change them.
> >
> > To change the password, you'll have to change it via normal unix tools,
> aka
> > the passwd utility.
> >
> > To use the passwd utility, you'll have to shell it out.
> >
> > Look up the man page for passwd and read the --stdin parameter.  You
> should
> > be able to feed it info that way.
> >
> > In theory this should work, I have never used it though.  I sync my
> > passwords with a Samba based PDC.
> >
> > Adam Lang
> > Systems Engineer
> > Rutgers Casualty Insurance Company
> > http://www.rutgersinsurance.com
> > ----- Original Message -----
> > From: "Ganesan" <ganesh15@m...>
> > To: "professional php" <pro_php@p...>
> > Sent: Monday, September 24, 2001 7:26 AM
> > Subject: [pro_php] Change Email User Password from PHP
> >
> >
> > > Dear all,
> > >
> > > I need some help.
> > >
> > > Recently have configured Sendmail on Linux box which have Redhat 7.0
> > > installed. The sendmail is working fine, where the user can retrive
and
> > > send mail using Outlook Express.
> > >
> > > As the administrator I will create the user account and set the
> password
> > > for them. The problem the could not be able to change their password.
> > >
> > > Is there a way to use PHP which can be used to change the password by
> > > communicating with sendmail.
> > >
> > > Please suggest what are the thing I have to configure or install in
> order
> > > to make it work. It will be high appreciated if you can suggest me
> links
> > > good articles related to this situation.
> > >
> > > Thank you in advanced.
> > >
> > > Regards,
> > >
> > > Ganesh
>
>




  Return to Index