diff options
author | ivan <ivan> | 2003-05-30 09:22:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-05-30 09:22:49 +0000 |
commit | 9325d2c27e096cc91a860a6166331cc45b8e560f (patch) | |
tree | 268848c197f93fd9f9b5804430bf9a1deb9fe017 | |
parent | f2bf6a9b8bdd5a1770597ebb3d0d65665ccd9c5f (diff) |
sqlradius exports include "op" field
-rw-r--r-- | FS/FS/part_export/sqlradius.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/FS/FS/part_export/sqlradius.pm b/FS/FS/part_export/sqlradius.pm index ccf9a7687..60450ee63 100644 --- a/FS/FS/part_export/sqlradius.pm +++ b/FS/FS/part_export/sqlradius.pm @@ -187,11 +187,15 @@ sub sqlradius_insert { #subroutine, not method } else { my $i_sth = $dbh->prepare( - "INSERT INTO rad$table ( UserName, Attribute, Value ) ". - "VALUES ( ?, ?, ? )" + "INSERT INTO rad$table ( UserName, Attribute, op, Value ) ". + "VALUES ( ?, ?, ?, ? )" ) or die $dbh->errstr; - $i_sth->execute( $username, $attribute, $attributes{$attribute} ) - or die $i_sth->errstr; + $i_sth->execute( + $username, + $attribute, + ( $attribute =~ /Password/i ? '==' : ':=' ), + $attributes{$attribute}, + ) or die $i_sth->errstr; } |