summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-08-12 15:30:43 -0400
committerjim-p <jimp@pfsense.org>2015-08-12 15:30:56 -0400
commit916fc1f87340f2a0fe50464db6f69e92e3b6ea94 (patch)
tree9eef34768ac8d3da4787b0f5d0ace56e3ff81ac0
parentc4a9f99a8d79e201b2af5053a095c83bb1a26467 (diff)
downloadpfsense-916fc1f87340f2a0fe50464db6f69e92e3b6ea94.zip
pfsense-916fc1f87340f2a0fe50464db6f69e92e3b6ea94.tar.gz
Don't lowercase the whole group name
-rw-r--r--etc/inc/auth.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 5543e82..9c5bba6 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1358,8 +1358,8 @@ function radius_get_groups($attributes) {
if (!empty($attributes) && is_array($attributes) && !empty($attributes['class'])) {
$groups = explode(";", $attributes['class']);
foreach ($groups as & $grp) {
- $grp = strtolower(trim($grp));
- if (substr($grp, 0, 3) == "ou=") {
+ $grp = trim($grp);
+ if (strtolower(substr($grp, 0, 3)) == "ou=") {
$grp = substr($grp, 3);
}
}
OpenPOWER on IntegriCloud