Class Net::Ping::LDAP
In: lib/net/ping/ldap.rb
Parent: Ping

The Ping::LDAP class encapsulates methods for LDAP pings.

Methods

config   decode_uri   encryption=   new   ping   ping?   pingecho  

Attributes

encryption  [RW]  set/get the encryption method. By default nil, but may be set to :simple_tls
password  [RW] 
uri  [RW]  uri contains the URI object for the request
username  [RW]  username and password may be set for ping using an authenticated LDAP bind

Public Class methods

Creates and returns a new Ping::LDAP object. The default timeout is 5 seconds.

uri string is expected to be a full URI with scheme (ldap/ldaps) and optionally the port (else default port is assumed) e.g.

  ldap://my.ldap.host.com
  ldap://my.ldap.host.com:1389
  ldaps://my.ldap.host.com
  ldaps://my.ldap.host.com:6636

If a plain hostname is provided as the uri, a default port of 389 is assumed

Public Instance methods

constructs the LDAP configuration structure

method used to decode uri string

perform ping, optionally providing the ping destination uri

ping?(host = nil)

Alias for ping

pingecho(host = nil)

Alias for ping

[Validate]