summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-10-03 15:29:12 +0000
committerivan <ivan>2002-10-03 15:29:12 +0000
commit54733ad0d4e802f8076216ce68e6b72123481af2 (patch)
tree716ac4128ac0b37c1f464313216338ee98e92e75
parentd0dbbe00d71aa3cc77c50b9919e1622195823c71 (diff)
fix implicit RADIUS password attribute to be Crypt-Password for encrypted pw's
-rw-r--r--FS/FS/svc_acct.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 5228f6c40..b8e9cfc4e 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -866,7 +866,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 => $self->_password,
map {
/^(rc_(.*))$/;
my($column, $attrib) = ($1, $2);