Mercurial > hg > xemacs-beta
annotate modules/ldap/eldap.h @ 5240:fca0cf0971de
Merge.
author | Mike Sperber <sperber@deinprogramm.de> |
---|---|
date | Tue, 13 Jul 2010 10:20:22 +0200 |
parents | a9c41067dd88 |
children | 308d34e9f07d |
rev | line source |
---|---|
265 | 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 | |
996 | 21 #ifndef INCLUDED_eldap_h_ |
22 #define INCLUDED_eldap_h_ | |
23 | |
24 #include <lber.h> | |
4027 | 25 /* #### NEEDS REWRITE! |
26 Thanks to Mats Lidell <matsl@xemacs.org> for the report & patch: | |
27 <871wgnqunm.fsf@spencer.lidell.homelinux.net> | |
28 "See http://www.openldap.org/faq/data/cache/1278.html. | |
29 Temporary workaround would be use the deprecated interface. Long term | |
30 solution is a rewrite." */ | |
31 #define LDAP_DEPRECATED 1 | |
996 | 32 #include <ldap.h> |
33 | |
34 /* | |
35 * The following structure records pertinent information about a | |
36 * LDAP connection. | |
37 */ | |
265 | 38 |
996 | 39 struct Lisp_LDAP |
40 { | |
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5120
diff
changeset
|
41 NORMAL_LISP_OBJECT_HEADER header; |
996 | 42 /* The LDAP connection handle used by the LDAP API */ |
43 LDAP *ld; | |
44 /* Name of the host we connected to */ | |
45 Lisp_Object host; | |
46 }; | |
47 typedef struct Lisp_LDAP Lisp_LDAP; | |
265 | 48 |
49 | |
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
4027
diff
changeset
|
50 DECLARE_LISP_OBJECT (ldap, Lisp_LDAP); |
996 | 51 #define XLDAP(x) XRECORD (x, ldap, Lisp_LDAP) |
52 #define wrap_ldap(p) wrap_record (p, ldap) | |
53 #define LDAPP(x) RECORDP (x, ldap) | |
54 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap) | |
55 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap) | |
265 | 56 |
996 | 57 #define CHECK_LIVE_LDAP(ldap) do { \ |
58 CHECK_LDAP (ldap); \ | |
59 if (!XLDAP (ldap)->ld) \ | |
60 invalid_operation ("Attempting to access closed LDAP connection", \ | |
61 ldap); \ | |
62 } while (0) | |
265 | 63 |
64 | |
996 | 65 Lisp_Object Fldapp (Lisp_Object object); |
66 Lisp_Object Fldap_host (Lisp_Object ldap); | |
67 Lisp_Object Fldap_live_p (Lisp_Object ldap); | |
68 Lisp_Object Fldap_open (Lisp_Object host, | |
69 Lisp_Object ldap_plist); | |
70 Lisp_Object Fldap_close (Lisp_Object ldap); | |
71 Lisp_Object Fldap_search_basic (Lisp_Object ldap, | |
72 Lisp_Object filter, | |
73 Lisp_Object base, | |
74 Lisp_Object scope, | |
75 Lisp_Object attrs, | |
76 Lisp_Object attrsonly, | |
77 Lisp_Object withdn, | |
78 Lisp_Object verbose); | |
79 Lisp_Object Fldap_add (Lisp_Object ldap, | |
80 Lisp_Object dn, | |
81 Lisp_Object entry); | |
82 Lisp_Object Fldap_modify (Lisp_Object ldap, | |
83 Lisp_Object dn, | |
84 Lisp_Object entry); | |
85 Lisp_Object Fldap_delete (Lisp_Object ldap, | |
86 Lisp_Object dn); | |
265 | 87 |
996 | 88 #endif /* INCLUDED_eldap_h_ */ |