Logo ROOT   6.07/09
Reference Guide
CintLDAP.h
Go to the documentation of this file.
1 // @(#)root/ldap:$Id$
2 // Author: Oleksandr Grebenyuk 21/09/2001
3 
4 /*************************************************************************
5  * For the licensing terms see $ROOTSYS/LICENSE. *
6  * For the list of contributors see $ROOTSYS/README/CREDITS. *
7  *************************************************************************/
8 
9 #ifndef ROOT_CintLDAP
10 #define ROOT_CintLDAP
11 
12 #if 1
13 
14 #if !defined(__CLING__)
15 // Regular section, the user must make sure explicitly that the
16 // correct set of header is included (or not).
17 
18 #include <lber.h> // needed for older versions of ldap.h
19 #include <ldap.h>
20 
21 #else
22 
23 // Loaded inside Cling, we need to mitigate duplication
24 // ourselves.
25 
26 #include <ldap.h>
27 #ifndef LBER_CLASS_UNIVERSAL
28 #include <lber.h> // needed for older versions of ldap.h
29 #endif
30 
31 #endif
32 
33 #else
34 
35 struct LDAP;
36 struct LDAPMessage;
37 struct LDAPMod;
38 
39 #define LDAP_VERSION1 1
40 #define LDAP_VERSION2 2
41 #define LDAP_VERSION3 3
42 
43 const int LDAP_PORT = 389;
44 
45 const int LDAP_SCOPE_DEFAULT = -1;
46 const int LDAP_SCOPE_BASE = 0x0000;
47 const int LDAP_SCOPE_ONELEVEL = 0x0001;
48 const int LDAP_SCOPE_SUBTREE = 0x0002;
49 
50 const int LDAP_MOD_ADD = 0x0000;
51 const int LDAP_MOD_DELETE = 0x0001;
52 const int LDAP_MOD_REPLACE = 0x0002;
53 const int LDAP_MOD_BVALUES = 0x0080;
54 
55 const int LDAP_SERVER_DOWN = 0x51;
56 
57 #endif
58 
59 #endif