X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fsqlradius.import;h=e75f65b17c9cb1aea66f8696824e1da2b1b8c451;hp=7203365f350138c25d47cbc6e30e0d5e5e907d8e;hb=f2e9d8413d6178a6248c8b5d47ac06b1d1f12cb5;hpb=c4b0a99e8be89daf346273a4a9f8a8d8c1dc264f;ds=sidebyside diff --git a/bin/sqlradius.import b/bin/sqlradius.import index 7203365f3..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; @@ -134,9 +134,8 @@ while ( defined ( $row = $sth->fetchrow_arrayref ) ) { 'finger' => $finger, }; - my($error); - $error = $svc_acct->insert; - #$error = $svc_acct->check; + my $error = $svc_acct->insert; + #my $error = $svc_acct->check; if ( $error ) { if ( $error =~ /duplicate/i ) { warn "$r_username / $realm: $error";