/usr/lib/ocaml/ocamldap/ldap_filter.mli is in libldap-ocaml-dev 2.1.8-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | (** operations on ldap search filters
Copyright (C) 2004 Eric Stokes, and The California State University
at Northridge
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*)
(** raised when something goes wrong in to_string or of_string. The
integer argument is, in the case of of_string, the position in the
string at which the error occurred. It has no meaning in to_string,
and may take any value. *)
exception Invalid_filter of int * string
(** turn the string representation into the internal representation
defined in ldap_types.ml. This representation is suitable for
sending on the wire, and can also have all sorts of operations
performed on it. play around with it in the toplevel to get a feel
for it *)
val of_string : string -> Ldap_types.filter
(** turn an internal representaion of a filter into a string
representaion compliant with rfc2254*)
val to_string : Ldap_types.filter -> string
(** escape a string which is intended to be the VALUE of an attribute
assertion in a filter. Do not use this on a whole filter, it will
destroy all the meta chars. Use it only on the VALUE part of the
assertion. It is NOT necessary to use this function if you intend
to call to_string, escaping will be done for you in that
case. This function is exposed because you may want to manipulate
a filter with a regular expression, or other string means, and you
may find it necessary to escape values manually in that case. *)
val escape_filterstring : string -> string
|