diff options
author | ivan <ivan> | 2002-10-03 15:29:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-10-03 15:29:14 +0000 |
commit | b3c55b5f123b1b5c8ebedfa1826cbf19a0dcc013 (patch) | |
tree | eae657ac20721c649cec46a7cbc5e7bc6395fff1 | |
parent | 70353b6415b4a9b07a78b3f108bc26272d603847 (diff) |
fix implicit RADIUS password attribute to be Crypt-Password for encrypted pw's
-rw-r--r-- | FS/FS/svc_acct.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 44f3ef45f..6c0807df2 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -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); |