lib/github/ldap.rb
def capabilities
      @capabilities ||=
        instrument "capabilities.github_ldap" do |payload|
          begin
            @connection.search_root_dse
          rescue Net::LDAP::LdapError => error
            payload[:error] = error
            # stubbed result
            Net::LDAP::Entry.new
          end
        end
    end
def capabilities
      @capabilities ||=
        instrument "capabilities.github_ldap" do |payload|
          begin
            @connection.search_root_dse
          rescue Net::LDAP::LdapError => error
            payload[:error] = error
            # stubbed result
            Net::LDAP::Entry.new
          end
        end
    end
def capabilities @capabilities ||= instrument "capabilities.github_ldap" do | payload | begin @connection . search_root_dse rescue Net :: LDAP :: LdapError => error payload [ :error ] = error # stubbed result Net :: LDAP :: Entry . new end end end
Internal: Searches the host LDAP server's Root DSE for capabilities and
 extensions.

 Returns a Net::LDAP::Entry object.
Internal : Searches the host LDAP server s Root DSE for capabilities and extensions .