# File lib/net/ldap.rb, line 1046
    def search_root_dse
      rs = search(
        :ignore_server_caps=>true,
        :base=>"",
        :scope=>SearchScope_BaseObject,
        :attributes=>[:namingContexts,:supportedLdapVersion,:altServer,:supportedControl,:supportedExtension,:supportedFeatures,:supportedSASLMechanisms]
      )
      (rs and rs.first) or Entry.new
    end