Files

Class/Module Index [+]

Quicksearch

ActiveLdap::Adapter::Jndi

Constants

METHOD

Public Instance Methods

add(dn, entries, options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 60
def add(dn, entries, options={})
  super do |_dn, _entries|
    info = {:dn => _dn, :attributes => _entries}
    execute(:add, info, _dn, parse_entries(_entries))
  end
end
bind_as_anonymous(options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 37
def bind_as_anonymous(options={})
  super do
    execute(:bind_as_anonymous, :name => "bind: anonymous")
    true
  end
end
connect(options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 21
def connect(options={})
  super do |host, port, method|
    uri = construct_uri(host, port, method == :ssl)
    with_start_tls = method == :start_tls
    info = {:uri => uri, :with_start_tls => with_start_tls}
    [log("connect", info) {JndiConnection.new(host, port, method)},
     uri, with_start_tls]
  end
end
delete(targets, options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 54
def delete(targets, options={})
  super do |target|
    execute(:delete, {:dn => target}, target)
  end
end
modify(dn, entries, options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 67
def modify(dn, entries, options={})
  super do |_dn, _entries|
    info = {:dn => _dn, :attributes => _entries}
    execute(:modify, info, _dn, parse_entries(_entries))
  end
end
modify_rdn(dn, new_rdn, delete_old_rdn, new_superior, options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 74
def modify_rdn(dn, new_rdn, delete_old_rdn, new_superior, options={})
  super do |_dn, _new_rdn, _delete_old_rdn, _new_superior|
    info = {
      :name => "modify: RDN",
      :dn => _dn,
      :new_rdn => _new_rdn,
      :new_superior => _new_superior,
      :delete_old_rdn => _delete_old_rdn
    }
    _new_rdn = "#{_new_rdn},#{_new_superior}" if _new_superior
    execute(:modify_rdn, info, _dn, _new_rdn, _delete_old_rdn)
  end
end
search(options={}, &block) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 44
def search(options={}, &block)
  super(options) do |base, scope, filter, attrs, limit|
    info = {
      :base => base, :scope => scope_name(scope), :filter => filter,
      :attributes => attrs, :limit => limit,
    }
    execute(:search, info, base, scope, filter, attrs, limit, &block)
  end
end
unbind(options={}) click to toggle source
# File lib/active_ldap/adapter/jndi.rb, line 31
def unbind(options={})
  super do
    execute(:unbind)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.