diff options
author | jim-p <jimp@pfsense.org> | 2016-04-07 10:58:38 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-04-07 10:58:38 -0400 |
commit | 461bae6b08d883d232db853a21337e688c1defee (patch) | |
tree | 827912e81f0b21fb2f7e031cb8fa3f9c469eb1cf /src/etc/inc/radius.inc | |
parent | 0ef6fddce9a48e7e1abac04c5dc59c0d7a99e83d (diff) | |
download | pfsense-461bae6b08d883d232db853a21337e688c1defee.zip pfsense-461bae6b08d883d232db853a21337e688c1defee.tar.gz |
Respect all Class attributes returned by the RADIUS server, not only the last one received. Fixes #6086
Diffstat (limited to 'src/etc/inc/radius.inc')
-rw-r--r-- | src/etc/inc/radius.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/etc/inc/radius.inc b/src/etc/inc/radius.inc index a63b831..326b359 100644 --- a/src/etc/inc/radius.inc +++ b/src/etc/inc/radius.inc @@ -480,7 +480,10 @@ class Auth_RADIUS extends PEAR { break; case RADIUS_CLASS: - $this->attributes['class'] = radius_cvt_string($data); + if (!array($this->attributes['class'])) { + $this->attributes['class'] = array(); + } + $this->attributes['class'][] = radius_cvt_string($data); break; case RADIUS_FRAMED_PROTOCOL: |