Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 2003 17:31:36 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        staf wagemakers <staf.wagemakers@belgacom.net>, hackers@freebsd.org
Subject:   Re: Disillusioned with PAM
Message-ID:  <200312121731.36477.doconnor@gsoft.com.au>
In-Reply-To: <20031211100520.GA3181@staflaptop.antw.the-ecorp.com>
References:  <20031210170417.B21993@tikitechnologies.com> <20031211100520.GA3181@staflaptop.antw.the-ecorp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 11 December 2003 20:35, staf wagemakers wrote:
> >   /usr/bin/passwd will be a real pain to use for a Web GUI as it
> > requires a pty, which means extensive "coding around it" to fake one up
> > for it a la poppassd.  I thought PAM was going to solve this for me,
> > because of the "password management" function designed in... only it
> > appears so far that no PAM method which implements local password
> > changing actually exists on FreeBSD.  What a mess.
>
> CGIpaf supports FreeBSD without pam basically it runs "pwd_mkdb" to
> update the password. If you need c functions to update a password the
> source might be useful to you.  http://staf.patat.org/cgipaf/

The 'pw' command can change passwords (among many other things) and it does 
not need a pty, eg..
echo newpassword | pw usermod foobar -h 0 

In a CGI you would open a pipe to pw and feed it the password.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312121731.36477.doconnor>