private void BindForAuthzOrGatewaySearch(LdapServer serv)
{
// If we're configured to use authorization credentials for searching, then
// we don't need to bind to the server (it's already been done if auth was
// successful).
bool useAuthBindForSearch = Settings.Store.UseAuthBindForAuthzAndGateway;
if (!useAuthBindForSearch)
{
serv.BindForSearch();
}
else
{
////m_logger.DebugFormat("Using authentication credentials for LDAP search.");
}
}