Yup, poppassd offer no neat front-end but i guess the following will help in creating
customizable
www front-end
[----beg of file----]
<?php
// PopPassd Port: 106
function chng_poppassd($username="", $oldpass="", $newpass="", $server = "localhost") {
$retval = "";
$conn = 0;
// connect to popppassd
$fp = fsockopen($server, 106, &$errno , &$errstr, 30);
if(!$fp) {
$retval = "cannot connect to $server:106";
} else {
$conn = 1;
$output = fgets($fp, 128);
if (substr($output, 0, 3) != "200") {
$retval = $output;
}
}
// send username
if (!$retval) {
fputs($fp, "user $username\n");
$output = fgets($fp, 128);
if (substr($output, 0, 3) != "200") {
$retval = $output;
}
}
// send oldpass
if (!$retval) {
fputs($fp, "pass $oldpass\n");
$output = fgets($fp, 128);
if (substr($output, 0, 3) != "200") {
$retval = $output;
}
}
// send newpass
if (!$retval) {
fputs($fp, "newpass $newpass\n");
$output = fgets($fp, 128);
if (substr($output, 0, 3) != "200") {
$retval = $output;
}
}
// quit
if ($conn) {
fputs($fp, "quit\n");
fclose($fp);
}
if($retval=="") {
$retval="Password is changed!";
}
return $retval;
}
$retMsg="";
if($btnSubmit=="Change" and $txtServer!="-Please Select-") {
//print $username;
//print $oldpasswd;
//print $password;
//print $password1;
//print $txtServer;
//call
$retMsg = "ErrMsg:<br>" . $username . "@" . $txtServer . "<br>" .
chng_poppassd($username,
$oldpasswd, $password, $txtServer);
}
<HTML>
<HEAD>
<TITLE>My PopPasswd Client</TITLE>
</HEAD>
<!-- form -->
<form method="POST" action="./myPopPassd.php">
<table border="0">
<tr>
<td align="right"><b>Login : </b></td>
<td><input type="text" name="username" size="20"
style="background-color: rgb(255,255,255); border: 1px
dotted"></td>
</tr>
<tr>
<td align="right"><b>Old Password :</b><
/td>
<td><input type="password" name="oldpasswd" size="20"
style="background-color: rgb(255,255,255); border: 1px
dotted"></td>
</tr>
</tr>
<td align="right<b>New Password : </b></td>
<td><input type="password" name="password" size="20"
style="background-color: rgb(255,255,255); border: 1px
dotted"></td>
</tr>
<tr>
<td align="right<b>New Password (confirm): </b
></td>
<td><input type="password" name="password1" size="20"
style="background-color: rgb(255,255,255); border: 1px
dotted"></td>
</tr>
<tr>
<td><div align="right><b>Server</b></td>
<td><div align="right"><select name="txtServer" size="1"
value="">
<option value="-Please Select-">-Please
Select-</option>
<option value=" "> </option>
<option value="mu2.mu.edu.ph">Poppassd Server1</option>
</select></td>
</tr>
<tr>
<td><div align="right"><p></td>
<td><div align="right"><p><input type="submit" value="Change"
name="btnSubmit">
<input type="reset"value="Clear"> </td>
</tr>
</table>
<SPAN class=copyGrey>
<? print($retMsg) ?>
</SPAN>
</form>
</HTML>
[----end of file----]
God Bless!
Quoting "Glynn S. Condez" <[EMAIL PROTECTED]>:
> Poppassd is good but doesn't have a www interface, it only useful for
> eudora
> client or email clients who has change password option.
> you can't use this in Outlook or microsoft outlook.
>
> :
> --- Glynn ---
>
> ----- Original Message -----
> From: "Howard Bagcat" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 4:19 AM
> Subject: Re: [plug] passwd..
>
>
> > Nathan,
> >
> > You can change user's password using Poppassd which modifies user's
> password via
> > pam (which is a ldap or sql aware).
> >
> > Try viewing this resources:
> > freshmeat.net/projects/poppassd-ceti
> >
> > Quoting [EMAIL PROTECTED]:
> >
> > > do you know how i can allow mailusers to change their email passwords
> thru
> > > web. or better yet, have you done a script that uses the linux passwd
> utility
> > >
> > > to change user passwords. pls. I would really appreciate your help.
> > >
> > > thanks.
> > > _
> > > Philippine Linux Users Group. Web site and archives at
> > > http://plug.linux.org.ph
> > > To leave: send "unsubscribe" in the body to
> [EMAIL PROTECTED]
> > >
> > > Fully Searchable Archives With Friendly Web Interface at
> > > http://marc.free.net.ph
> > >
> > > To subscribe to the Linux Newbies' List: send "subscribe" in the body
> to
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > H o w a r d R. B a g c a t
> > WebAdmin, MUWeb - Edition 4 Project <http://www.mu.edu.ph>
> > Systems Programmer, RBT & MUMC Project
> > Misamis University
> > Ozamiz City, Philippines
> >
> > office: 088 521 0367 local 109
> > mobile: 63 0919 5536179
> > email : [EMAIL PROTECTED]
> >
> > Imagination is more important than knowledge
> > -Albert Einstein
> >
> >
> >
> >
> > Sulat @MU.edu.ph v.1.0 (Stable)
> >
> ............................................................................
> ...........
> > An extended module for MUWeb4 Project of Howard R. Bagcat
> > Powered by GNU General Public License softwares.
> >
> >
> >
> > _
> > Philippine Linux Users Group. Web site and archives at
> http://plug.linux.org.ph
> > To leave: send "unsubscribe" in the body to
> [EMAIL PROTECTED]
> >
> > Fully Searchable Archives With Friendly Web Interface at
> http://marc.free.net.ph
> >
> > To subscribe to the Linux Newbies' List: send "subscribe" in the body to
> [EMAIL PROTECTED]
> >
>
> _
> Philippine Linux Users Group. Web site and archives at
> http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
> Fully Searchable Archives With Friendly Web Interface at
> http://marc.free.net.ph
>
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to
> [EMAIL PROTECTED]
>
H o w a r d R. B a g c a t
WebAdmin, MUWeb - Edition 4 Project <http://www.mu.edu.ph>
Systems Programmer, RBT & MUMC Project
Misamis University
Ozamiz City, Philippines
office: 088 521 0367 local 109
mobile: 63 0919 5536179
email : [EMAIL PROTECTED]
Imagination is more important than knowledge
-Albert Einstein
Sulat @MU.edu.ph v.1.0 (Stable)
.......................................................................................
An extended module for MUWeb4 Project of Howard R. Bagcat
Powered by GNU General Public License softwares.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]