struct
LDAP::Entry
- LDAP::Entry
- Struct
- Value
- Object
Overview
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.
Defined in:
ldap/entry.crConstructors
Instance Method Summary
-
#[](key : String) : Array(String)
The values of key decoded as strings.
-
#[]?(key : String) : Array(String) | Nil
The values of key decoded as strings, or
nilif the attribute is absent. - #attributes : Hash(String, Array(Bytes))
-
#bytes(key : String) : Array(Bytes)
The raw byte values of key (for binary attributes).
- #dn : String
- #has_attribute?(key : String) : Bool
-
#keys : Array(String)
The attribute names present on this entry.
Constructor Detail
Instance Method Detail
def [](key : String) : Array(String)
#
The values of key decoded as strings. Raises KeyError if absent.
def []?(key : String) : Array(String) | Nil
#
The values of key decoded as strings, or nil if the attribute is absent.
def bytes(key : String) : Array(Bytes)
#
The raw byte values of key (for binary attributes). Raises if absent.