package ocamldap
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=be85eccfa45de6066238da85c6ad2a409d69df245b6cd2b740ec2bf3400b587c
md5=6137a123978ac5b0dd301af26122e437
doc/ldap/Ldap_txooclient/class-ldapadvisorytxcon/index.html
Class Ldap_txooclient.ldapadvisorytxcon
A subclass of ldapcon which implements an experimental interface to draft_zeilenga_ldap_txn. A draft standard for multi object transactions over the ldap protocol. This class can only implement advisory transactions because it must depend on the advisory locking mechanisms for the transactions to be consistant. You use this class by calling begin_txn to get a transaction id, and then associating a set of ldapentry objects with the transaction by calling associate_entry_with_txn. You are then free to modify those entries in any way you like, and when you are done, you can either call commit_txn, or rollback_txn. Commit will commit the changes of all the entries associated with the transaction to the database. For other writers which obey advisory locking the commit operation is atomic. For readers which are willing to obey advisory locking is atomic. If the commit fails, a full rollback occurrs, including all changes made to the directory. For example in a set of N entries in a transaction, if the modificiation of the nth entry fails to commit, then the modifications to all the previous entries, which have already been made in the directory, are undone. It is important to note that if advisory locking is not obeyed, rollback may not be successful. Rollback undoes all the changes you've made in memory, and unlocks all the objects in the transaction. After a transaction object has been commited or rolled back it is considered "dead", and cannot be used again.
method add : Ldap_ooclient.ldapentry -> unitmethod bind : ?cred:string -> ?meth:Ldap_funclient.authmethod -> string -> unitmethod modify : string ->
(Ldap_types.modify_optype * string * string list) list ->
unitmethod rawschema : Ldap_ooclient.ldapentrymethod schema : Ldap_schemaparser.schemamethod search : ?scope:Ldap_types.search_scope ->
?attrs:string list ->
?attrsonly:bool ->
?base:string ->
?sizelimit:Int32.t ->
?timelimit:Int32.t ->
string ->
Ldap_ooclient.ldapentry listmethod search_a : ?scope:Ldap_types.search_scope ->
?attrs:string list ->
?attrsonly:bool ->
?base:string ->
?sizelimit:Int32.t ->
?timelimit:Int32.t ->
string ->
?abandon:bool ->
unit ->
Ldap_ooclient.ldapentrymethod update_entry : Ldap_ooclient.ldapentry -> unitmethod begin_txn : txnmethod associate_entry : txn -> Ldap_ooclient.ldapentry_t -> unitmethod associate_entries : txn -> Ldap_ooclient.ldapentry_t list -> unitmethod disassociate_entry : txn -> Ldap_ooclient.ldapentry_t -> unitmethod disassociate_entries : txn -> Ldap_ooclient.ldapentry_t list -> unitmethod commit_txn : txn -> unitmethod rollback_txn : txn -> unit