code: def configure_member_search_strategy(strategy = nil)
        @member_search_strategy =
          case strategy.to_s
          when "classic"
            GitHub::Ldap::MemberSearch::Classic
          when "recursive"
            GitHub::Ldap::MemberSearch::Recursive
          when "active_directory"
            GitHub::Ldap::MemberSearch::ActiveDirectory
          else
            # fallback to detection, defaulting to recursive strategy
            if active_directory_capability?
              GitHub::Ldap::MemberSearch::ActiveDirectory
            else
              GitHub::Ldap::MemberSearch::Recursive
            end
          end
      end
docs: Internal: Configure the member search strategy.
  
  
   If no known strategy is provided, detects ActiveDirectory capabilities or
   falls back to the Recursive strategy by default.
  
   Returns the selected strategy Class.