struct

LDAP::Entry

Inherits Struct / Value / Object

A single search result: its distinguished name plus its attributes.

Attribute values are stored as raw Bytes — LDAP octet strings are not necessarily UTF-8 (e.g. objectGUID, userCertificate). Use #[] for the common text case (decoded as a String) and #bytes for binary attributes.

Constructors

new(dn : String, attributes : Hash(String, Array(Bytes)))
Source

Instance methods

[](key : String) : Array(String)

The values of key decoded as strings. Raises KeyError if absent.

Source
[]?(key : String) : Array(String) | Nil

The values of key decoded as strings, or nil if the attribute is absent.

Source
attributes
Source
bytes(key : String) : Array(Bytes)

The raw byte values of key (for binary attributes). Raises if absent.

Source
has_attribute?(key : String) : Bool
Source
keys

The attribute names present on this entry.

Source