lib/github/ldap.rb
def configure_user_search_strategy(strategy)
      @user_search_strategy =
        case strategy.to_s
        when "default"
          GitHub::Ldap::UserSearch::Default.new(self)
        when "global_catalog"
          GitHub::Ldap::UserSearch::ActiveDirectory.new(self)
        else
          GitHub::Ldap::UserSearch::Default.new(self)
        end
    end
def configure_user_search_strategy(strategy)
      @user_search_strategy =
        case strategy.to_s
        when "default"
          GitHub::Ldap::UserSearch::Default.new(self)
        when "global_catalog"
          GitHub::Ldap::UserSearch::ActiveDirectory.new(self)
        else
          GitHub::Ldap::UserSearch::Default.new(self)
        end
    end
Internal:  Set the user search strategy that will be used by
            Domain#user?.

 strategy - Can be either 'default' or 'global_catalog'.
            'default' strategy will search the configured
            domain controller with a search base relative
            to the controller's domain context.
            'global_catalog' will search the entire forest
            using Active Directory's Global Catalog
            functionality.