diff options
author | ivan <ivan> | 2004-06-22 03:10:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-06-22 03:10:40 +0000 |
commit | b103b8634ba68182b0858679e90d37961cb0555a (patch) | |
tree | bce6e89a5521d6b17c39dd43086762c22b52c082 /bin/sqlradius.import | |
parent | 3cf2f37f18ff1df9f129a081cde807d7bfd51e9b (diff) |
fix attribute importing bugs that borked the passwords
Diffstat (limited to 'bin/sqlradius.import')
-rw-r--r-- | bin/sqlradius.import | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sqlradius.import b/bin/sqlradius.import index 587d828e4..e75f65b17 100644 --- 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} ) { - my($attribute, $value, $name, $groupname) = @$row; - if ( $attribute =~ /^(Crypt-)?Password$/ ) { + my($attribute, $value, $name, $groupname) = @$rc_row; + if ( $attribute =~ /^((User|Crypt)-)?Password$/ ) { $password = $value; $finger = $name; $group = $groupname; |