[sork] passwd module

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Wed Sep 3 20:18:44 UTC 2008


Quoting Jorge Hernandez <jorgeh at fsbcomputers.com>:

>   I have horde 1.1.2 installed with passwd using myscript as  
> backend, the script has been configured to take args, but using it  
> as follows, it doesn't send the args to my script, is this the way  
> to pass my args???:

Try double quotes instead of single quotes on the program line...

>        'program' => '/usr/bin/php  
> /var/www/htdocs/change_password.php $_POST[userid]  
> $_POST[newpassword1]'

Try instead:

'program' => "/usr/bin/php /var/www/htdocs/change_password.php  
$_POST[userid] $_POST[newpassword1]"

The differnce is, php doesn't expand variables in single quoted strings, but
does in double quoted strings..  You could also maybe do something like:

'program' => '/usr/bin/php /var/www/htdocs/change_password.php ' .  
$_POST[userid] . ' ' . $_POST[newpassword1]

But I don't think that is as clean...

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

This message is provided "AS IS" without warranty of any kind,
either expressed or implied.  Use this message at your own risk.


More information about the sork mailing list