LDAP::Client
Constructors
max_message_size caps how many bytes the BER decoder will allocate or read
for a single received message and its nested values, guarding against a
hostile server forcing a huge allocation. Defaults to 16 MiB; 0 or a
negative value disables the bound.
timeout bounds how long each operation waits for its response before
raising TimeoutError. nil (the default) waits indefinitely. A timed-out
operation drops its pending state and leaves the connection usable: any late
data the server still streams for it is ignored. (The connection is not
abandoned server-side — LDAP Abandon is a separate, future operation.)
Instance methods
https://tools.ietf.org/html/rfc4511#section-4.7
https://tools.ietf.org/html/rfc4511#section-4.10 Returns whether the entry's attribute holds the asserted value.
https://tools.ietf.org/html/rfc4511#section-4.6
https://tools.ietf.org/html/rfc4511#section-4.9
Runs a search and returns the matching entries. Raises ReferralError (with
any entries found + the referral URLs) when the result set is incomplete
because it lives elsewhere; SearchLimitError (with the partial entries) on a
server-side size/time/admin limit; OperationError on any other failure code.
Streaming, auto-paginated search (RFC 2696). Issues successive pages of at most
page_size entries, yielding each Entry as it arrives; memory is bounded to
one page. Raises ReferralError (with the referral URLs) when a page is a
referral; SearchLimitError (with empty entries — matched entries were
already yielded) on a server-side size/time/admin limit; OperationError on
any other failure. Because entries stream as they arrive, a page's entries
are yielded before its result code is inspected — so an OperationError on a
later page may follow entries the caller has already received. Composes with sort.
https://tools.ietf.org/html/rfc4511#section-4.3 Sends an UnbindRequest (which has no response) and closes the connection.