package ldap
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=746db5d6239931ff7ceff7a75bc61315
sha512=8dcad3e5b86445c914ea6bb76e2a8fbf35deb674b226222a6482e3ffea0144b30f2e39bb2920b068b0c11f66a4bda3c12d5e1408e19739069ef066ce5b65980c
doc/ldap/Ldap_mutex/index.html
Module Ldap_mutex
Source
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.
the class type of a single mutex, used for performing advisory locking of some action
the class type of an object lock table which allows for advisory locking of objects by dn
new mutex ldapurls binddn bindpw mutexdn
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.
new object_lock_table ldapurls binddn bindpw mutexdn