fix implicit RADIUS password attribute to be Crypt-Password for encrypted pw's
authorivan <ivan>
Thu, 3 Oct 2002 15:29:14 +0000 (15:29 +0000)
committerivan <ivan>
Thu, 3 Oct 2002 15:29:14 +0000 (15:29 +0000)
FS/FS/svc_acct.pm

index 44f3ef4..6c0807d 100644 (file)
@@ -857,7 +857,9 @@ expected to change in the future.
 
 sub radius_check {
   my $self = shift;
-  ( 'Password' => $self->_password,
+  my $password = $self->_password;
+  my $pw_attrib = length($password) <= 12 ? 'Password' : 'Crypt-Password';
+  ( $pw_attrib => $password,
     map {
       /^(rc_(.*))$/;
       my($column, $attrib) = ($1, $2);