projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e58e375
)
sqlradius exports include "op" field
author
ivan
<ivan>
Fri, 30 May 2003 09:22:53 +0000
(09:22 +0000)
committer
ivan
<ivan>
Fri, 30 May 2003 09:22:53 +0000
(09:22 +0000)
FS/FS/part_export/sqlradius.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/sqlradius.pm
b/FS/FS/part_export/sqlradius.pm
index
ccf9a76
..
60450ee
100644
(file)
--- 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(
} 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;
) 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;
}
}