fix attribute importing bugs that borked the passwords
authorivan <ivan>
Tue, 22 Jun 2004 03:10:33 +0000 (03:10 +0000)
committerivan <ivan>
Tue, 22 Jun 2004 03:10:33 +0000 (03:10 +0000)
bin/sqlradius.import

index e8b6394..e75f65b 100644 (file)
@@ -116,7 +116,7 @@ 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} ) {
-    my($attribute, $value, $name, $groupname) = @$row;
+    my($attribute, $value, $name, $groupname) = @$rc_row;
     if ( $attribute =~ /^((User|Crypt)-)?Password$/ ) {
       $password = $value;
       $finger = $name;