mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -112,7 +112,11 @@ class ADAuthorizationAuthorizer extends MysqlAuthorizer
|
||||
|
||||
// collect all roles
|
||||
$auth_ad_groups = Config::get('auth_ad_groups');
|
||||
foreach ($entries[0]['memberof'] as $entry) {
|
||||
foreach ($entries[0]['memberof'] as $index => $entry) {
|
||||
if ($index == 'count') {
|
||||
continue; // skip count entry
|
||||
}
|
||||
|
||||
$group_cn = $this->getCn($entry);
|
||||
|
||||
if (isset($auth_ad_groups[$group_cn]['roles']) && is_array($auth_ad_groups[$group_cn]['roles'])) {
|
||||
|
Reference in New Issue
Block a user