projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3cf2f37
)
fix attribute importing bugs that borked the passwords
author
ivan
<ivan>
Tue, 22 Jun 2004 03:10:40 +0000
(
03:10
+0000)
committer
ivan
<ivan>
Tue, 22 Jun 2004 03:10:40 +0000
(
03:10
+0000)
bin/sqlradius.import
patch
|
blob
|
history
diff --git
a/bin/sqlradius.import
b/bin/sqlradius.import
index
587d828
..
e75f65b
100644
(file)
--- a/
bin/sqlradius.import
+++ b/
bin/sqlradius.import
@@
-116,8
+116,8
@@
while ( defined ( $row = $sth->fetchrow_arrayref ) ) {
$rc_sth->execute($r_username, $realm) or die $rc_sth->errstr;
foreach my $rc_row ( @{$rc_sth->fetchall_arrayref} ) {
$rc_sth->execute($r_username, $realm) or die $rc_sth->errstr;
foreach my $rc_row ( @{$rc_sth->fetchall_arrayref} ) {
- my($attribute, $value, $name, $groupname) = @$row;
- if ( $attribute =~ /^(
Crypt
-)?Password$/ ) {
+ my($attribute, $value, $name, $groupname) = @$r
c_r
ow;
+ if ( $attribute =~ /^(
(User|Crypt)
-)?Password$/ ) {
$password = $value;
$finger = $name;
$group = $groupname;
$password = $value;
$finger = $name;
$group = $groupname;