diff options
-rw-r--r-- | etc/inc/auth.inc | 4 |
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); } } |