Skip to content

Commit

Permalink
Fix case where search.base is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Oct 2, 2018
1 parent d48383b commit 4bb6e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Monitor/TestCase/AuthSource/Ldap/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function initialize($testData)
$authSourceData = $testData->getInputItem('authSourceData');

// Just to be on the safe side, strip off any OU's and search to whole directory
$base = $authSourceData->getString('search.base', '<< unset >>');
$base = $authSourceData->getArrayizeString('search.base', '<< unset >>');
$base = is_array($base) ? $base[0] : $base;
if (($i = stripos($base, 'DC=')) > 0) {
$base = substr($base, $i);
Expand Down

0 comments on commit 4bb6e75

Please sign in to comment.