diff options
author | jim-p <jimp@pfsense.org> | 2015-08-12 15:30:43 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-08-12 15:30:43 -0400 |
commit | 089938860dbefc6f511b7743f553414def7e8f06 (patch) | |
tree | 3b444696378a76f976cd3fe9f18eb8df9fb61f28 | |
parent | 709c2f99f1bf99022ee8ba670cfd8025e2c71592 (diff) | |
download | pfsense-089938860dbefc6f511b7743f553414def7e8f06.zip pfsense-089938860dbefc6f511b7743f553414def7e8f06.tar.gz |
Don't lowercase the whole group name
-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 44a90d8..e99c0c6 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1245,8 +1245,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); } } |