Project

General

Profile

« Previous | Next » 

Revision 08993886

Added by Jim Pingle almost 10 years ago

Don't lowercase the whole group name

View differences:

etc/inc/auth.inc
1245 1245
	if (!empty($attributes) && is_array($attributes) && !empty($attributes['class'])) {
1246 1246
		$groups = explode(";", $attributes['class']);
1247 1247
		foreach ($groups as & $grp) {
1248
			$grp = strtolower(trim($grp));
1249
			if (substr($grp, 0, 3) == "ou=") {
1248
			$grp = trim($grp);
1249
			if (strtolower(substr($grp, 0, 3)) == "ou=") {
1250 1250
				$grp = substr($grp, 3);
1251 1251
			}
1252 1252
		}

Also available in: Unified diff