package ocamldap

  1. Overview
  2. Docs
exception Server_error of string
type connection_id = int
type backendInfo = {
  1. bi_op_bind : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  2. bi_op_unbind : (connection_id -> Ldap_types.ldap_message -> unit) option;
  3. bi_op_compare : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  4. bi_op_modify : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  5. bi_op_modrdn : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  6. bi_op_add : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  7. bi_op_delete : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  8. bi_op_abandon : (connection_id -> Ldap_types.ldap_message -> unit) option;
  9. bi_op_extended : (connection_id -> Ldap_types.ldap_message -> Ldap_types.ldap_message) option;
  10. bi_init : (unit -> unit) option;
  11. bi_close : (unit -> unit) option;
}
type log_level = [
  1. | `CONNECTION
  2. | `ERROR
  3. | `GENERAL
  4. | `OPERATIONS
  5. | `TRACE
]
type server_info
val init : ?log:(log_level -> string -> unit) -> ?port:int -> backendInfo -> server_info
val shutdown : server_info -> unit
val run : server_info -> unit
OCaml

Innovation. Community. Security.