1.1.4.2 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 whether aliases are automatically dereferenced. This must be one of DEREF_NEVER, DEREF_SEARCHING, DEREF_FINDING, or DEREF_ALWAYS. This option is mapped to option constant OPT_DEREF and used in the underlying OpenLDAP lib.

protocol_version
Version of LDAP in use (either VERSION2 for LDAPv2 or VERSION3 for LDAPv3). This option is mapped to option constant OPT_PROTOCOL_VERSION and used in the underlying OpenLDAP lib.

Note It is highly recommended to set the protocol version after establishing a LDAP connection with initialize() and before submitting the first request.

sizelimit
Limit on size of message to receive from server. Defaults to NO_LIMIT. This option is mapped to option constant OPT_SIZELIMIT and used in the underlying OpenLDAP lib. Its use is deprecated in favour of sizelimit parameter when using search_ext().

timelimit
Limit on waiting for any response, in seconds. Defaults to NO_LIMIT. This option is mapped to option constant OPT_TIMELIMIT and used in the underlying OpenLDAP lib. Its use is deprecated in favour of using timeout.

timeout
Limit on waiting for any response, in seconds. Defaults to NO_LIMIT. This option is used in the wrapper module.