[dev] Passwd Driver
Mario Andres Yepes C
marioy at upb.edu.co
Tue Apr 22 16:35:28 PDT 2003
Greetings.
This a new passwd driver.
What it does is execute a custom program or script that can be configured in
backends.php
here are two example configurations
<?
$backends['ftp'] = array(
'name' => 'Change FTP password Server 1'
'preferred' => '',
'password policy' => array(),
'driver' => 'exec',
'params' => array(
'exec' => 'echo %newpass% | /usr/local/bin/ftppasswd %username% ',
)
);
$backends['ftp2'] = array(
'name' => 'Change FTP password Server 2',
'preferred' => '',
'password policy' => array(),
'driver' => 'exec',
'params' => array(
'exec' => '/usr/local/bin/myscript --oldpass %oldpass% --newpass
%newpass% %username%',
)
);
?>
You can figure that %username% , %oldpass% and %newpass% will be replaced by
the values inserted in the form.
Hope somebody find this usefull.
Regards
Mario
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exec.php
Type: application/x-php
Size: 1531 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030422/d01fea6c/exec.bin
More information about the dev
mailing list