From 916fc1f87340f2a0fe50464db6f69e92e3b6ea94 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 12 Aug 2015 15:30:43 -0400 Subject: Don't lowercase the whole group name --- etc/inc/auth.inc | 4 ++-- 1 file 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); } } -- cgit v1.1