On Tue, 17 Sep 2002, Nick Marino wrote:

> dont see that anywhere in dialup admin, and I am using a sql database for
> auth not linux.

Ahhh ... I have a presentation on the general topic of command
shell MySQL access (in part) at:
   http://www.colug.net/notes/0208mtg/

This code fragment should work ...


$select1 = "select passwdhash from usertable \
        where userid = '$userid' \
        limit 1";
$result1        = mysql_query($select1);
$row1           = mysql_fetch_assoc($result);
$t_passwdhash   = $row1["passwdhash"];
$t_passwdhash   = "*20020917*" . $passwdhash;
$select2 = "update usertable set passwdhash = '$passwdhash' \
        where userid = '$userid'";
$result2        = mysql_query($select2);


 -- Russ Herrold


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to