Commit bbbef09f authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3236 Fixed Can't use string ("1") as an ARRAY ref while "strict refs"

parent 4f3961fa
......@@ -909,7 +909,8 @@ sub check_ldap {
# Collect existing people branches (even if main one may not exists);
my $people = $ldap->search (base => $base, filter => $peopleou);
$people->code && die $people->error;
my @people_entries = map {$_->dn} @{$people->entries};
my @people_entries = $people->entries;
@people_entries = map {$_->dn} @people_entries;
# if ou=people exists
if ( branch_exists($ldap, "$peopleou,$base") ) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment