1.1.5.4 Object attributes

If the underlying library provides enough information, each LDAP object will also have the following attributes. These attributes are mutable unless described as read-only.

deref
Controls for when an automatic dereference of a referral occurs. This must be one of DEREF_NEVER, DEREF_SEARCHING, DEREF_FINDING, or DEREF_ALWAYS.

errno
error
matched
These attributes are set after an exception has been raised, and are also included with the value raised. (See also section 1.3.3.) (All read-only.)

lberoptions
Options for the BER library.

options
General options. This field is the bitiwse OR of the flags OPT_REFERRALS (follow referrals), and OPT_RESTART (restart the select() system call when interrupted).

refhoplimit
Maximum number of referrals to follow before raising an exception. Defaults to 5.

sizelimit
Limit on size of message to receive from server. Defaults to NO_LIMIT.

timelimit
Limit on waiting for any response, in seconds. Defaults to NO_LIMIT.

valid
If zero, the connection has been unbound. See unbind() for more information. (read-only)