# File lib/net/ping/ldap.rb, line 78
    def ping(host = nil)
      decode_uri(host) if host
      super(@host)
      
      bool = false

      start_time = Time.now

      begin
        Timeout.timeout(@timeout) do
          Net::LDAP.new( config  ).bind
        end
      rescue Net::LDAP::LdapError => e
        @exception = e.message
      rescue Exception => e
        @exception = e.message
      else
        bool = true
      end

      # There is no duration if the ping failed
      @duration = Time.now - start_time if bool

      bool
    end