Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Ltb/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function search($ldap_filter,$attributes, $attributes_map, $search_result_title,
$referrals = null;
\Ltb\PhpLDAP::ldap_parse_result($this->ldap, $search, $errno, $matcheddn, $errmsg, $referrals, $controls);

if($errno != 0)
if($errno != 0 and $errno !=4)
{
# if any error occurs, stop the search loop and treat error
break;
Expand All @@ -185,6 +185,7 @@ function search($ldap_filter,$attributes, $attributes_map, $search_result_title,

if ( $errno == 4) {
$size_limit_reached = true;
error_log("LDAP - Search reached size limit, only $nb_entries returned");
}
if ( $errno != 0 and $errno !=4 ) {
$result = "ldaperror";
Expand Down