Mercurial > hg > xemacs-beta
annotate modules/ldap/eldap.h @ 5554:a42e686a01bf
Automated merge with file:///Sources/xemacs-21.5-checked-out
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Wed, 24 Aug 2011 11:07:26 +0100 |
| parents | 308d34e9f07d |
| children |
| 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 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
| 265 | 7 under the terms of the GNU General Public License as published by the |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
9 option) any later version. |
| 265 | 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 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 265 | 18 |
| 996 | 19 #ifndef INCLUDED_eldap_h_ |
| 20 #define INCLUDED_eldap_h_ | |
| 21 | |
| 22 #include <lber.h> | |
| 4027 | 23 /* #### NEEDS REWRITE! |
| 24 Thanks to Mats Lidell <matsl@xemacs.org> for the report & patch: | |
| 25 <871wgnqunm.fsf@spencer.lidell.homelinux.net> | |
| 26 "See http://www.openldap.org/faq/data/cache/1278.html. | |
| 27 Temporary workaround would be use the deprecated interface. Long term | |
| 28 solution is a rewrite." */ | |
| 29 #define LDAP_DEPRECATED 1 | |
| 996 | 30 #include <ldap.h> |
| 31 | |
| 32 /* | |
| 33 * The following structure records pertinent information about a | |
| 34 * LDAP connection. | |
| 35 */ | |
| 265 | 36 |
| 996 | 37 struct Lisp_LDAP |
| 38 { | |
|
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5120
diff
changeset
|
39 NORMAL_LISP_OBJECT_HEADER header; |
| 996 | 40 /* The LDAP connection handle used by the LDAP API */ |
| 41 LDAP *ld; | |
| 42 /* Name of the host we connected to */ | |
| 43 Lisp_Object host; | |
| 44 }; | |
| 45 typedef struct Lisp_LDAP Lisp_LDAP; | |
| 265 | 46 |
| 47 | |
|
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
4027
diff
changeset
|
48 DECLARE_LISP_OBJECT (ldap, Lisp_LDAP); |
| 996 | 49 #define XLDAP(x) XRECORD (x, ldap, Lisp_LDAP) |
| 50 #define wrap_ldap(p) wrap_record (p, ldap) | |
| 51 #define LDAPP(x) RECORDP (x, ldap) | |
| 52 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap) | |
| 53 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap) | |
| 265 | 54 |
| 996 | 55 #define CHECK_LIVE_LDAP(ldap) do { \ |
| 56 CHECK_LDAP (ldap); \ | |
| 57 if (!XLDAP (ldap)->ld) \ | |
| 58 invalid_operation ("Attempting to access closed LDAP connection", \ | |
| 59 ldap); \ | |
| 60 } while (0) | |
| 265 | 61 |
| 62 | |
| 996 | 63 Lisp_Object Fldapp (Lisp_Object object); |
| 64 Lisp_Object Fldap_host (Lisp_Object ldap); | |
| 65 Lisp_Object Fldap_live_p (Lisp_Object ldap); | |
| 66 Lisp_Object Fldap_open (Lisp_Object host, | |
| 67 Lisp_Object ldap_plist); | |
| 68 Lisp_Object Fldap_close (Lisp_Object ldap); | |
| 69 Lisp_Object Fldap_search_basic (Lisp_Object ldap, | |
| 70 Lisp_Object filter, | |
| 71 Lisp_Object base, | |
| 72 Lisp_Object scope, | |
| 73 Lisp_Object attrs, | |
| 74 Lisp_Object attrsonly, | |
| 75 Lisp_Object withdn, | |
| 76 Lisp_Object verbose); | |
| 77 Lisp_Object Fldap_add (Lisp_Object ldap, | |
| 78 Lisp_Object dn, | |
| 79 Lisp_Object entry); | |
| 80 Lisp_Object Fldap_modify (Lisp_Object ldap, | |
| 81 Lisp_Object dn, | |
| 82 Lisp_Object entry); | |
| 83 Lisp_Object Fldap_delete (Lisp_Object ldap, | |
| 84 Lisp_Object dn); | |
| 265 | 85 |
| 996 | 86 #endif /* INCLUDED_eldap_h_ */ |
