# Module Ldif_parser

    module Ldif_parser: sig .. end

    exception Illegal_char of char * int

    exception End

    type stream_rec = {

`` | `stream : `char Stream.t`;`
`` | `buf : `Stdlib.Buffer.t`;`
`` | `mutable line : `int`;`

`}`

    val optval : 'a option -> 'a

    val read_comment : stream_rec -> unit

    val comment : stream_rec -> unit

    val sep : stream_rec -> string

    val seps : stream_rec -> unit

    val digit : stream_rec -> char

    val safe_char : stream_rec -> char

    val safe_init_char : stream_rec -> char

    val alpha : stream_rec -> char

    val safe_chars : stream_rec -> unit

    val safe_string : stream_rec -> string

    val attr_type_char : stream_rec -> char

    val attr_type_chars : stream_rec -> unit

    val option : stream_rec -> string

    val options : stream_rec -> string

    val attributeType : stream_rec -> string

    val attributeDescription : stream_rec -> string

    val value_spec : stream_rec -> string

    val attrval_spec : ?attrs:Ldap_types.attribute list ->
           stream_rec -> Ldap_types.attribute list

    val distinguishedName : stream_rec -> string

    val dn_spec : stream_rec -> string

    val ldif_attrval_record : stream_rec -> Ldap_types.search_result_entry