package ldap
Implementation of the Light Weight Directory Access Protocol
Install
Dune Dependency
Authors
Maintainers
Sources
2.4.0.tar.gz
sha256=b5b3d095351ec4af7c93795fd9c8e68d8f106cea910f72414846402bc20f3a96
md5=ab4569687487ee49427aa0a93f02e375
doc/src/ldap.toplevel/ldap_toplevel.ml.html
Source file ldap_toplevel.ml
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
(* Functions which resemble the command line tools, useful in the interactive environment 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 *) open Ldap_ooclient open Ldap_types open Ldif_oo open Ldap_schemaparser let eval s = let l = Lexing.from_string s in let ph = !Toploop.parse_toplevel_phrase l in assert(Toploop.execute_phrase false Format.err_formatter ph) ;; eval "#install_printer Ldap_ooclient.format_entries;;";; eval "#install_printer Ldap_ooclient.format_entry;;";; eval "#install_printer Ldap_schemaparser.format_oid;;";; eval "#install_printer Ldap_schemaparser.format_lcstring;;";; eval "#install_printer Ldap_schemaparser.format_schema;;";; let ldap_cmd_harness ~h ~d ~w f = let ldap = new ldapcon [h] in try ldap#bind d ~cred:w; let res = f ldap in ldap#unbind; res with exn -> ldap#unbind;raise exn ;; let ldapsearch ?(s=`SUBTREE) ?(a=[]) ?(b="") ?(d="") ?(w="") ~h filter = ldap_cmd_harness ~h ~d ~w (fun ldap -> ldap#search ~base:b ~scope:s ~attrs:a filter) ;; let ldapmodify ~h ~d ~w mods = ldap_cmd_harness ~h ~d ~w (fun ldap -> List.iter (fun (dn, ldmod) -> ldap#modify dn ldmod) mods) ;; let ldapadd ~h ~d ~w entries = ldap_cmd_harness ~h ~d ~w (fun ldap -> List.iter (fun entry -> ldap#add entry) entries) ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>