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.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.