class

LDAP::Request

Inherits Reference / Object

Constants

DELETE_TREE = "1.2.840.113556.1.4.805"
PAGED_RESULTS = "1.2.840.113556.1.4.319"
SORT_REQUEST = "1.2.840.113556.1.4.473"
SORT_RESPONSE = "1.2.840.113556.1.4.474"
START_TLS_OID = "1.3.6.1.4.1.1466.20037"

Instance methods

add(dn : String, attributes : Hash(String, Array(String)))

https://tools.ietf.org/html/rfc4511#section-4.7

Source
authenticate(username : String = "", password : String = "")
Source
build(request : BER, controls : BER | Nil = nil, message_id = next_message_id)
Source
compare(dn : String, attribute : String, value : String)

https://tools.ietf.org/html/rfc4511#section-4.10

Source
delete(dn : String)

https://tools.ietf.org/html/rfc4511#section-4.8

Source
encode_sort_controls(*sort_controls : String | SortControl)
Source
modify(dn : String, changes : Enumerable(Modification))

https://tools.ietf.org/html/rfc4511#section-4.6

Source
modify_dn(dn : String, new_rdn : String, delete_old_rdn : Bool = true, new_superior : String | Nil = nil)

https://tools.ietf.org/html/rfc4511#section-4.9

Source
next_message_id

Message IDs run from 1 to Int32::MAX and wrap back to 1. RFC 4511 ยง4.1.1.1: "The message ID of zero is reserved for unsolicited notifications and MUST NOT be used in any other request."

Source
start_tls
Source
unbind

https://tools.ietf.org/html/rfc4511#section-4.3

Source

Nested types