276
|
1 /* Definitions for the LDAP client interface for XEmacs.
|
|
2 Copyright (C) 1998 Free Software Foundation, Inc.
|
|
3
|
|
4 This file is part of XEmacs.
|
|
5
|
|
6 XEmacs is free software; you can redistribute it and/or modify it
|
|
7 under the terms of the GNU General Public License as published by the
|
|
8 Free Software Foundation; either version 2, or (at your option) any
|
|
9 later version.
|
|
10
|
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 #ifndef _XEMACS_ELDAP_H_
|
|
22 #define _XEMACS_ELDAP_H_
|
|
23
|
|
24 #ifndef HAVE_LDAP
|
|
25 #undef XLDAP
|
|
26 #undef XSETLDAP
|
|
27 #define LDAPP(x) 0
|
|
28 #undef CHECK_LDAP
|
|
29
|
|
30 #else /* HAVE_LDAP */
|
|
31
|
|
32 struct Lisp_LDAP;
|
|
33
|
|
34 DECLARE_LRECORD (ldap, struct Lisp_LDAP);
|
|
35 #define XLDAP(x) XRECORD (x, ldap, struct Lisp_LDAP)
|
|
36 #define XSETLDAP(x, p) XSETRECORD (x, p, ldap)
|
|
37 #define LDAPP(x) RECORDP (x, ldap)
|
|
38 #define GC_LDAPP(x) GC_RECORDP (x, ldap)
|
|
39 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap)
|
280
|
40 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap)
|
276
|
41
|
282
|
42 #define CHECK_LIVE_LDAP(ldap) do { \
|
|
43 CHECK_LDAP (ldap); \
|
|
44 if (!XLDAP (ldap)->livep) \
|
|
45 signal_simple_error ("Attempting to access closed LDAP connection", \
|
|
46 ldap); \
|
276
|
47 } while (0)
|
280
|
48
|
|
49
|
276
|
50
|
|
51
|
|
52 #ifdef emacs
|
|
53
|
|
54 Lisp_Object Fldapp (Lisp_Object object);
|
|
55 Lisp_Object Fldap_host (Lisp_Object ldap);
|
|
56 Lisp_Object Fldap_status (Lisp_Object ldap);
|
|
57 Lisp_Object Fldap_open (Lisp_Object host,
|
|
58 Lisp_Object ldap_plist);
|
|
59 Lisp_Object Fldap_close (Lisp_Object ldap);
|
|
60 Lisp_Object Fldap_search_internal (Lisp_Object ldap,
|
|
61 Lisp_Object filter,
|
|
62 Lisp_Object base,
|
|
63 Lisp_Object scope,
|
|
64 Lisp_Object attrs,
|
|
65 Lisp_Object attrsonly);
|
|
66
|
|
67 #endif /* emacs */
|
|
68
|
|
69
|
|
70 #endif
|
|
71
|
|
72
|
|
73 #endif /* _XEMACS_ELDAP_H_ */
|