package ldap

  1. Overview
  2. Docs
Implementation of the Light Weight Directory Access Protocol

Install

Dune Dependency

Authors

Maintainers

Sources

ldap-2.5.1.tar.gz
md5=d28ce5956436f129dc2fb4f94f0b277a
sha512=b28e31a471321b4fcde93d47c9d7d3bf0f317be36a96116ef45a9fbd2b957f843df94cf70121b9e6d60c0a98117deba898366f0e03ec7e08ff2e4aafb6b03d5c

doc/ldap/Ldap_mutex/index.html

Module Ldap_mutexSource

Sourceexception Ldap_mutex of string * exn

functions for implementing mutexes on top of LDAP's built in test and set mechanism. In order to use this module you must load mutex.schema, which is an rfc2252 format schema file. raised when a mutex operation fails. The string argument contains the name of the method which failed, and the exception contains details about what failed.

Sourceclass type mutex_t = object ... end

the class type of a single mutex, used for performing advisory locking of some action

Sourceclass type object_lock_table_t = object ... end

the class type of an object lock table which allows for advisory locking of objects by dn

Sourceclass mutex : string list -> string -> string -> string -> object ... end

new mutex ldapurls binddn bindpw mutexdn

Sourceval apply_with_mutex : mutex -> (unit -> 'a) -> 'a

used to apply some function, first locking the mutex, unlocking it only after the function has been applied. If the function generates any exception, this wrapper catches that exception, and unlocks the mutex before reraising the exception. Generally garentees that the mutex will always be used consistantly when performing an action.

Sourceclass object_lock_table : string list -> string -> string -> string -> object ... end

new object_lock_table ldapurls binddn bindpw mutexdn

OCaml

Innovation. Community. Security.