Skip to content
Snippets Groups Projects
Commit 780283f2 authored by Aleksander Machniak's avatar Aleksander Machniak
Browse files

Fix find_domain() result when domain wasn't found (#4959)

parent 64b4f7f8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3074,11 +3074,17 @@ class Net_LDAP3
if ($result = $this->search($domain_base_dn, $domain_filter, 'sub', $attributes)) {
$result = $result->entries(true);
$domain_dn = key($result);
$result = $result[$domain_dn];
$result['dn'] = $domain_dn;
 
// cache domain DN
$this->set_cache_data($ckey, $domain_dn);
if (empty($domain_dn)) {
$result = false;
}
else {
$result = $result[$domain_dn];
$result['dn'] = $domain_dn;
// cache domain DN
$this->set_cache_data($ckey, $domain_dn);
}
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment