Skip to content

Commit

Permalink
If throwException flag isn't set, don't throw exception on ServerDown…
Browse files Browse the repository at this point in the history
… in LDAPQuery (#119)
  • Loading branch information
definitelynotagoblin authored Apr 25, 2024
1 parent bc22710 commit 5257b63
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/CommonLib/LDAPUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -959,13 +959,6 @@ public IEnumerable<ISearchResultEntry> QueryLDAP(string ldapFilter, SearchScope
le.ErrorCode, le.ServerErrorMessage, le.Message, ldapFilter, domainName);
}

if (le.ErrorCode == (int)LdapErrorCodes.ServerDown)
{
throw new LDAPQueryException(
$"LDAP Exception in Loop: {le.ErrorCode}. {le.ServerErrorMessage}. {le.Message}. Filter: {ldapFilter}. Domain: {domainName}",
le);
}

yield break;
}
catch (Exception e)
Expand Down

0 comments on commit 5257b63

Please sign in to comment.