1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef PHP_LDAP_H
24 #define PHP_LDAP_H
25
26 #ifndef HAVE_ORALDAP
27 #include <lber.h>
28 #endif
29
30 #include <ldap.h>
31
32 extern zend_module_entry ldap_module_entry;
33 #define ldap_module_ptr &ldap_module_entry
34
35 #include "php_version.h"
36 #define PHP_LDAP_VERSION PHP_VERSION
37
38
39 PHP_MINIT_FUNCTION(ldap);
40 PHP_MSHUTDOWN_FUNCTION(ldap);
41 PHP_MINFO_FUNCTION(ldap);
42
43 ZEND_BEGIN_MODULE_GLOBALS(ldap)
44 zend_long num_links;
45 zend_long max_links;
46 ZEND_END_MODULE_GLOBALS(ldap)
47
48 #ifdef ZTS
49 # define LDAPG(v) TSRMG(ldap_globals_id, zend_ldap_globals *, v)
50 #else
51 # define LDAPG(v) (ldap_globals.v)
52 #endif
53
54 #define phpext_ldap_ptr ldap_module_ptr
55
56
57 #define LDAP_MODIFY_BATCH_ADD 0x01
58 #define LDAP_MODIFY_BATCH_REMOVE 0x02
59 #define LDAP_MODIFY_BATCH_REMOVE_ALL 0x12
60 #define LDAP_MODIFY_BATCH_REPLACE 0x03
61
62 #define LDAP_MODIFY_BATCH_ATTRIB "attrib"
63 #define LDAP_MODIFY_BATCH_MODTYPE "modtype"
64 #define LDAP_MODIFY_BATCH_VALUES "values"
65
66 #endif