package ldap

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

Install

Dune Dependency

Authors

Maintainers

Sources

ldap-2.4.2.tbz
sha256=2f7fa9d27e12e3604c6f84384aa31ab98fffd06fe7c9e5354a387a15131a708e
sha512=e0e2bc1e974059bdd1f1c64a6fd4fa933307bbb055de9af4099ed407842ef455887fdfab7af7b8407bf62797ed98c2d67434200dbd54a3acc791f2493fb5da79

doc/ldap.ldif/Ldif_oo/index.html

Module Ldif_ooSource

an object oriented interface to the ldif parser

Sourceval iter : ('a -> unit) -> < read_entry : 'a.. > -> unit

Ldif_oo.iter f ldif, iterate accross all ldif entries in the specified ldif object, applying f to each one

Sourceval fold : ('a -> 'b -> 'a) -> < read_entry : 'b.. > -> 'a -> 'a

Ldif_oo.fold f ldif value, for each ldif entry en in the ldif object fold computes f (... (f (f value e1) e2) ...) en

Sourceval entry2ldif : ?ext:bool -> Buffer.t -> < attributes : string list ; dn : string ; get_value : string -> string list.. > -> Buffer.t

if you need a fast, low level interface to to_string, this function will write ldif directly into a buffer. Setting ext to true (defaul false) will write extended ldif. Extended ldif should be parsed using the Ldif_changerec_oo module.

Sourceval read_ldif_file : string -> Ldap_ooclient.ldapentry list

read all the entries in the named ldif file and return them in a list

Sourceval write_ldif_file : string -> Ldap_ooclient.ldapentry list -> unit

write all the entries in the given list to the named file in ldif format

Sourceclass ldif : ?in_ch:in_channel -> ?out_ch:out_channel -> unit -> object ... end
OCaml

Innovation. Community. Security.