]> git.sur5r.net Git - openldap/blob - servers/slapd/slapi/slapi.h
Move most of SLAPI frontend into overlay
[openldap] / servers / slapd / slapi / slapi.h
1 /* $OpenLDAP$ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 2002-2005 The OpenLDAP Foundation.
5  * Portions Copyright 1997,2002-2003 IBM Corporation.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted only as authorized by the OpenLDAP
10  * Public License.
11  *
12  * A copy of this license is available in the file LICENSE in the
13  * top-level directory of the distribution or, alternatively, at
14  * <http://www.OpenLDAP.org/license.html>.
15  */
16 /* ACKNOWLEDGEMENTS:
17  * This work was initially developed by IBM Corporation for use in
18  * IBM products and subsequently ported to OpenLDAP Software by
19  * Steve Omrani.  Additional significant contributors include:
20  *   Luke Howard
21  */
22
23 #ifdef LDAP_SLAPI /* SLAPI is OPTIONAL */
24
25 #ifndef _SLAPI_H
26 #define _SLAPI_H
27
28 #include "ibm_pblock_params.h"
29
30 LDAP_BEGIN_DECL
31
32 /*
33  * Quick 'n' dirty to make struct slapi_* in slapi-plugin.h opaque
34  */
35 #define slapi_entry     slap_entry
36 #define slapi_attr      slap_attr
37 #define slapi_value     berval
38 #define slapi_valueset  berval*
39 #define slapi_filter    slap_filter
40
41 LDAP_END_DECL
42
43 #include <slapi-plugin.h>
44
45 LDAP_BEGIN_DECL
46
47 /*
48  * Was: slapi_common.h
49  */
50
51 /* a little naif ... */
52 #ifndef TRUE
53 #define TRUE 1
54 #endif
55
56 #ifndef FALSE
57 #define FALSE 0
58 #endif
59
60 /*
61  * Was: slapi_utils.h
62  */
63 typedef struct _Audit_record Audit_record;
64
65 #define SLAPI_CONTROL_MANAGEDSAIT_OID           LDAP_CONTROL_MANAGEDSAIT
66 #define SLAPI_CONTROL_SORTEDSEARCH_OID          LDAP_CONTROL_SORTREQUEST
67 #define SLAPI_CONTROL_PAGED_RESULTS_OID         LDAP_CONTROL_PAGEDRESULTS
68
69 typedef int (*SLAPI_FUNC)( Slapi_PBlock *pb );
70
71 typedef struct _slapi_control {
72         int                     s_ctrl_num;
73         char                    **s_ctrl_oids;
74         unsigned long           *s_ctrl_ops;
75 } Slapi_Control;
76
77 typedef struct _ExtendedOp {
78         struct berval           ext_oid;
79         SLAPI_FUNC              ext_func;
80         Backend                 *ext_be;
81         struct _ExtendedOp      *ext_next;
82 } ExtendedOp;
83
84 /* Computed attribute support */
85 struct _computed_attr_context {
86         Slapi_PBlock    *cac_pb;
87         Operation       *cac_op;
88         AccessControlState *cac_acl_state;
89         void            *cac_private;
90 };
91
92 /* for slapi_attr_type_cmp() */
93 #define SLAPI_TYPE_CMP_EXACT    0
94 #define SLAPI_TYPE_CMP_BASE     1
95 #define SLAPI_TYPE_CMP_SUBTYPE  2
96
97 typedef enum slapi_extension_e {
98         SLAPI_X_EXT_CONNECTION = 0,
99         SLAPI_X_EXT_OPERATION = 1,
100         SLAPI_X_EXT_MAX = 2
101 } slapi_extension_t;
102
103 /*
104  * Was: slapi_pblock.h
105  */
106
107 #ifndef NO_PBLOCK_CLASS         /* where's this test from? */
108
109 typedef enum slapi_pblock_class_e {
110         PBLOCK_CLASS_INVALID = 0,
111         PBLOCK_CLASS_INTEGER,
112         PBLOCK_CLASS_LONG_INTEGER,
113         PBLOCK_CLASS_POINTER,
114         PBLOCK_CLASS_FUNCTION_POINTER
115 } slapi_pblock_class_t;
116
117 #define PBLOCK_SUCCESS                  (0)
118 #define PBLOCK_ERROR                    (-1)
119 #define PBLOCK_MAX_PARAMS               100
120
121 struct slapi_pblock {
122         ldap_pvt_thread_mutex_t pblockMutex;
123         int                     ckParams;
124         int                     numParams;
125         int                     curParams[PBLOCK_MAX_PARAMS];
126         void                    *curVals[PBLOCK_MAX_PARAMS];
127 };
128
129 #endif /* !NO_PBLOCK_CLASS */
130
131 /*
132  * Was: plugin.h
133  */
134
135 #define SLAPI_PLUGIN_IS_POST_FN(x) ((x) >= SLAPI_PLUGIN_POST_BIND_FN && (x) <= SLAPI_PLUGIN_POST_RESULT_FN)
136
137 /*
138  * Was: slapi_cl.h
139  */
140
141 #if 0
142 #define TIME_SIZE 20
143 #define OBJECTCLASS "objectclass"
144 #define TOP "top"
145 #define CHANGE_TIME "changetime"
146 #define CHANGE_TYPE "changetype"
147 #define CHANGE_TARGETDN "targetdn"
148 #define CHANGES "changes"
149 #define CHANGE_NUMBER "changenumber"
150 /*
151  * FIXME: I get complaints like "ADD" being redefined - first definition
152  * being in "/usr/include/arpa/nameser.h:552"
153  */
154 #undef ADD
155 #define ADD "add: "
156 #define ADDLEN 5
157 #define DEL "delete: "
158 #define DELLEN 8
159 #define REPLACE "replace: "
160 #define REPLEN 9
161 #define MOD "modify"
162 #define MODRDN "modrdn"
163 #define CHANGE_LOGENTRY "changelogentry"
164 #define IBM_CHANGE_LOGENTRY "ibm-changelog"
165 #define CL_NEWRDN "newrdn"
166 #define CL_DELRDN "deleteoldrdn"
167 #define CHANGE_INITIATOR "ibm-changeInitiatorsName" 
168
169 extern void slapi_register_changelog_suffix(char *suffix);
170 extern char **slapi_get_changelog_suffixes();
171 extern void slapi_update_changelog_counters(long curNum, long numEntries);
172 extern char *slapi_get_cl_firstNum();
173 extern char *slapi_get_cl_lastNum();
174 extern int slapi_add_to_changelog(Slapi_Entry *ent, char *suffix, char *chNum, Operation* op);  
175 extern int slapi_delete_changelog(char *dn, char *suffix, char *chNum, Operation* op);  
176 extern int slapi_modify_changelog(char *dn,LDAPMod      *mods,char *suffix, char *chNum, Operation* op); 
177 extern int slapi_modifyrdn_changelog(char *olddn, char *newRdn, int delRdn, char *suffix, char *chNum, Operation* op);
178 extern Backend * slapi_cl_get_be(char *dn);
179 #endif
180
181
182 /*
183  * Attribute flags returned by slapi_attr_get_flags()
184  */
185 #define SLAPI_ATTR_FLAG_SINGLE          0x0001
186 #define SLAPI_ATTR_FLAG_OPATTR          0x0002
187 #define SLAPI_ATTR_FLAG_READONLY        0x0004
188 #define SLAPI_ATTR_FLAG_STD_ATTR        SLAPI_ATTR_FLAG_READONLY
189 #define SLAPI_ATTR_FLAG_OBSOLETE        0x0040
190 #define SLAPI_ATTR_FLAG_COLLECTIVE      0x0080
191 #define SLAPI_ATTR_FLAG_NOUSERMOD       0x0100
192
193 /*
194  * ACL levels
195  */
196 #define SLAPI_ACL_COMPARE       0x01
197 #define SLAPI_ACL_SEARCH        0x02
198 #define SLAPI_ACL_READ          0x04
199 #define SLAPI_ACL_WRITE         0x08
200 #define SLAPI_ACL_DELETE        0x10
201 #define SLAPI_ACL_ADD           0x20
202 #define SLAPI_ACL_SELF          0x40
203 #define SLAPI_ACL_PROXY         0x80
204 #define SLAPI_ACL_ALL           0x7f
205
206 /*
207  * Plugin types universally supported by SLAPI
208  * implementations
209  */
210 #define SLAPI_PLUGIN_DATABASE           1
211 #define SLAPI_PLUGIN_EXTENDEDOP         2
212 #define SLAPI_PLUGIN_PREOPERATION       3
213 #define SLAPI_PLUGIN_POSTOPERATION      4
214 #define SLAPI_PLUGIN_MATCHINGRULE       5
215 #define SLAPI_PLUGIN_SYNTAX             6
216 /* XXX this is SLAPI_PLUGIN_ACL in SunDS */
217 #define SLAPI_PLUGIN_AUDIT              7
218 /*
219  * The following plugin types are reserved for future
220  * Sun ONE DS compatability.
221  */
222 #define SLAPI_PLUGIN_BEPREOPERATION             8       
223 #define SLAPI_PLUGIN_BEPOSTOPERATION            9       
224 #define SLAPI_PLUGIN_ENTRY                      10      
225 #define SLAPI_PLUGIN_TYPE_OBJECT                11      
226 #define SLAPI_PLUGIN_INTERNAL_PREOPERATION      12      
227 #define SLAPI_PLUGIN_INTERNAL_POSTOPERATION     13
228 #define SLAPI_PLUGIN_PWD_STORAGE_SCHEME         14
229 #define SLAPI_PLUGIN_VATTR_SP                   15
230 #define SLAPI_PLUGIN_REVER_PWD_STORAGE_SCHEME   16
231
232 #define SLAPI_PLUGIN_EXTENDED_SENT_RESULT       -1
233 #define SLAPI_PLUGIN_EXTENDED_NOT_HANDLED       -2
234
235 #define SLAPI_BIND_SUCCESS              0
236 #define SLAPI_BIND_FAIL                 2
237 #define SLAPI_BIND_ANONYMOUS            3
238
239 #define SLAPI_BACKEND                           130
240 #define SLAPI_CONNECTION                        131
241 #define SLAPI_OPERATION                         132
242 #define SLAPI_REQUESTOR_ISROOT                  133
243 #define SLAPI_BE_MONITORDN                      134
244 #define SLAPI_BE_TYPE                           135
245 #define SLAPI_BE_READONLY                       136
246 #define SLAPI_BE_LASTMOD                        137
247 #define SLAPI_OPERATION_PARAMETERS              138
248 #define SLAPI_CONN_ID                           139
249
250 #define SLAPI_OPINITIATED_TIME                  140
251 #define SLAPI_REQUESTOR_DN                      141
252 #define SLAPI_REQUESTOR_ISUPDATEDN              142
253 #define SLAPI_IS_REPLICATED_OPERATION           SLAPI_REQUESTOR_ISUPDATEDN
254 #define SLAPI_CONN_DN                           143
255 #define SLAPI_CONN_AUTHTYPE                     144
256 #define SLAPI_CONN_CLIENTIP                     145
257 #define SLAPI_CONN_SERVERIP                     146
258 #define SLAPI_X_CONN_CLIENTPATH                 1300
259 #define SLAPI_X_CONN_SERVERPATH                 1301
260 #define SLAPI_X_CONN_IS_UDP                     1302
261 #define SLAPI_X_CONN_SSF                        1303
262 #define SLAPI_X_CONN_SASL_CONTEXT               1304
263
264 /* really private stuff */
265 #define SLAPI_X_CONFIG_ARGV                     1400
266 #define SLAPI_X_INTOP_FLAGS                     1401
267 #define SLAPI_X_INTOP_RESULT_CALLBACK           1402
268 #define SLAPI_X_INTOP_SEARCH_ENTRY_CALLBACK     1403
269 #define SLAPI_X_INTOP_REFERRAL_ENTRY_CALLBACK   1404
270 #define SLAPI_X_INTOP_CALLBACK_DATA             1405
271
272 #define SLAPD_AUTH_NONE   "none"
273 #define SLAPD_AUTH_SIMPLE "simple"
274 #define SLAPD_AUTH_SSL    "SSL"
275 #define SLAPD_AUTH_SASL   "SASL "
276
277 #define SLAPI_PLUGIN                            3
278 #define SLAPI_PLUGIN_PRIVATE                    4
279 #define SLAPI_PLUGIN_TYPE                       5
280 #define SLAPI_PLUGIN_ARGV                       6
281 #define SLAPI_PLUGIN_ARGC                       7
282 #define SLAPI_PLUGIN_VERSION                    8
283
284 #define SLAPI_PLUGIN_OPRETURN                   9
285 #define SLAPI_PLUGIN_OBJECT                     10
286 #define SLAPI_PLUGIN_DESTROY_FN                 11
287
288 #define SLAPI_PLUGIN_DESCRIPTION                12
289
290 #define SLAPI_PLUGIN_INTOP_RESULT               15
291 #define SLAPI_PLUGIN_INTOP_SEARCH_ENTRIES       16
292 #define SLAPI_PLUGIN_INTOP_SEARCH_REFERRALS     17
293
294 #define SLAPI_PLUGIN_DB_BIND_FN                 200
295 #define SLAPI_PLUGIN_DB_UNBIND_FN               201
296 #define SLAPI_PLUGIN_DB_SEARCH_FN               202
297 #define SLAPI_PLUGIN_DB_COMPARE_FN              203
298 #define SLAPI_PLUGIN_DB_MODIFY_FN               204
299 #define SLAPI_PLUGIN_DB_MODRDN_FN               205
300 #define SLAPI_PLUGIN_DB_ADD_FN                  206
301 #define SLAPI_PLUGIN_DB_DELETE_FN               207
302 #define SLAPI_PLUGIN_DB_ABANDON_FN              208
303 #define SLAPI_PLUGIN_DB_CONFIG_FN               209
304 #define SLAPI_PLUGIN_CLOSE_FN                   210
305 #define SLAPI_PLUGIN_DB_FLUSH_FN                211
306 #define SLAPI_PLUGIN_START_FN                   212
307 #define SLAPI_PLUGIN_DB_SEQ_FN                  213
308 #define SLAPI_PLUGIN_DB_ENTRY_FN                214
309 #define SLAPI_PLUGIN_DB_REFERRAL_FN             215
310 #define SLAPI_PLUGIN_DB_RESULT_FN               216
311 #define SLAPI_PLUGIN_DB_LDIF2DB_FN              217
312 #define SLAPI_PLUGIN_DB_DB2LDIF_FN              218
313 #define SLAPI_PLUGIN_DB_BEGIN_FN                219
314 #define SLAPI_PLUGIN_DB_COMMIT_FN               220
315 #define SLAPI_PLUGIN_DB_ABORT_FN                221
316 #define SLAPI_PLUGIN_DB_ARCHIVE2DB_FN           222
317 #define SLAPI_PLUGIN_DB_DB2ARCHIVE_FN           223
318 #define SLAPI_PLUGIN_DB_NEXT_SEARCH_ENTRY_FN    224
319 #define SLAPI_PLUGIN_DB_FREE_RESULT_SET_FN      225
320 #define SLAPI_PLUGIN_DB_SIZE_FN                 226
321 #define SLAPI_PLUGIN_DB_TEST_FN                 227
322 #define SLAPI_PLUGIN_DB_NO_ACL                  250
323
324 #define SLAPI_PLUGIN_EXT_OP_FN                  300
325 #define SLAPI_PLUGIN_EXT_OP_OIDLIST             301
326 #define SLAPI_PLUGIN_PRE_BIND_FN                401
327 #define SLAPI_PLUGIN_PRE_UNBIND_FN              402
328 #define SLAPI_PLUGIN_PRE_SEARCH_FN              403
329 #define SLAPI_PLUGIN_PRE_COMPARE_FN             404
330 #define SLAPI_PLUGIN_PRE_MODIFY_FN              405
331 #define SLAPI_PLUGIN_PRE_MODRDN_FN              406
332 #define SLAPI_PLUGIN_PRE_ADD_FN                 407
333 #define SLAPI_PLUGIN_PRE_DELETE_FN              408
334 #define SLAPI_PLUGIN_PRE_ABANDON_FN             409
335 #define SLAPI_PLUGIN_PRE_ENTRY_FN               410
336 #define SLAPI_PLUGIN_PRE_REFERRAL_FN            411
337 #define SLAPI_PLUGIN_PRE_RESULT_FN              412
338 #define SLAPI_PLUGIN_POST_BIND_FN               501
339 #define SLAPI_PLUGIN_POST_UNBIND_FN             502
340 #define SLAPI_PLUGIN_POST_SEARCH_FN             503
341 #define SLAPI_PLUGIN_POST_COMPARE_FN            504
342 #define SLAPI_PLUGIN_POST_MODIFY_FN             505
343 #define SLAPI_PLUGIN_POST_MODRDN_FN             506
344 #define SLAPI_PLUGIN_POST_ADD_FN                507
345 #define SLAPI_PLUGIN_POST_DELETE_FN             508
346 #define SLAPI_PLUGIN_POST_ABANDON_FN            509
347 #define SLAPI_PLUGIN_POST_ENTRY_FN              510
348 #define SLAPI_PLUGIN_POST_REFERRAL_FN           511
349 #define SLAPI_PLUGIN_POST_RESULT_FN             512
350
351 #define SLAPI_OPERATION_TYPE                    590
352
353 #define SLAPI_PLUGIN_MR_FILTER_CREATE_FN        600
354 #define SLAPI_PLUGIN_MR_INDEXER_CREATE_FN       601
355 #define SLAPI_PLUGIN_MR_FILTER_MATCH_FN         602
356 #define SLAPI_PLUGIN_MR_FILTER_INDEX_FN         603
357 #define SLAPI_PLUGIN_MR_FILTER_RESET_FN         604
358 #define SLAPI_PLUGIN_MR_INDEX_FN                605
359 #define SLAPI_PLUGIN_MR_OID                     610
360 #define SLAPI_PLUGIN_MR_TYPE                    611
361 #define SLAPI_PLUGIN_MR_VALUE                   612
362 #define SLAPI_PLUGIN_MR_VALUES                  613
363 #define SLAPI_PLUGIN_MR_KEYS                    614
364 #define SLAPI_PLUGIN_MR_FILTER_REUSABLE         615
365 #define SLAPI_PLUGIN_MR_QUERY_OPERATOR          616
366 #define SLAPI_PLUGIN_MR_USAGE                   617
367
368 #define SLAPI_OP_LESS                                   1
369 #define SLAPI_OP_LESS_OR_EQUAL                          2
370 #define SLAPI_OP_EQUAL                                  3
371 #define SLAPI_OP_GREATER_OR_EQUAL                       4
372 #define SLAPI_OP_GREATER                                5
373 #define SLAPI_OP_SUBSTRING                              6
374
375 #define SLAPI_PLUGIN_MR_USAGE_INDEX             0
376 #define SLAPI_PLUGIN_MR_USAGE_SORT              1
377
378 #define SLAPI_MATCHINGRULE_NAME                 1
379 #define SLAPI_MATCHINGRULE_OID                  2
380 #define SLAPI_MATCHINGRULE_DESC                 3
381 #define SLAPI_MATCHINGRULE_SYNTAX               4
382 #define SLAPI_MATCHINGRULE_OBSOLETE             5
383
384 #define SLAPI_PLUGIN_SYNTAX_FILTER_AVA          700
385 #define SLAPI_PLUGIN_SYNTAX_FILTER_SUB          701
386 #define SLAPI_PLUGIN_SYNTAX_VALUES2KEYS         702
387 #define SLAPI_PLUGIN_SYNTAX_ASSERTION2KEYS_AVA  703
388 #define SLAPI_PLUGIN_SYNTAX_ASSERTION2KEYS_SUB  704
389 #define SLAPI_PLUGIN_SYNTAX_NAMES               705
390 #define SLAPI_PLUGIN_SYNTAX_OID                 706
391 #define SLAPI_PLUGIN_SYNTAX_FLAGS               707
392 #define SLAPI_PLUGIN_SYNTAX_COMPARE             708
393
394 #define SLAPI_PLUGIN_ACL_INIT                   730
395 #define SLAPI_PLUGIN_ACL_SYNTAX_CHECK           731
396 #define SLAPI_PLUGIN_ACL_ALLOW_ACCESS           732
397 #define SLAPI_PLUGIN_ACL_MODS_ALLOWED           733
398 #define SLAPI_PLUGIN_ACL_MODS_UPDATE            734
399
400 #define SLAPI_OPERATION_AUTHTYPE                741
401 #define SLAPI_OPERATION_ID                      742
402 #define SLAPI_CONN_CERT                         743
403 #define SLAPI_CONN_AUTHMETHOD                   746
404
405 #define SLAPI_RESULT_CODE                       881
406 #define SLAPI_RESULT_TEXT                       882
407 #define SLAPI_RESULT_MATCHED                    883
408
409 #define SLAPI_PLUGIN_SYNTAX_FLAG_ORKEYS                 1
410 #define SLAPI_PLUGIN_SYNTAX_FLAG_ORDERING               2
411
412 #define SLAPI_PLUGIN_AUDIT_DATA                 1100
413 #define SLAPI_PLUGIN_AUDIT_FN                   1101
414
415 /* DS 5.x Computed Attribute Callbacks (not exposed) */
416 #define SLAPI_PLUGIN_COMPUTE_EVALUATOR_FN       1200
417 #define SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN 1201
418
419 #define SLAPI_X_PLUGIN_PRE_GROUP_FN             1202 
420 #define SLAPI_X_PLUGIN_POST_GROUP_FN            1203
421
422 /* backend_group extension */
423 #define SLAPI_X_GROUP_ENTRY                     1250            /* e */
424 #define SLAPI_X_GROUP_ATTRIBUTE                 1251            /* group_at */
425 #define SLAPI_X_GROUP_OPERATION_DN              1252            /* op_ndn */
426 #define SLAPI_X_GROUP_TARGET_ENTRY              1253            /* target */
427
428 #define SLAPI_MANAGEDSAIT                       1000
429
430 #define SLAPI_CONFIG_FILENAME                   40
431 #define SLAPI_CONFIG_LINENO                     41
432 #define SLAPI_CONFIG_ARGC                       42
433 #define SLAPI_CONFIG_ARGV                       43
434
435 #define SLAPI_TARGET_ADDRESS                    48
436 #define SLAPI_TARGET_UNIQUEID                   49
437 #define SLAPI_TARGET_DN                         50
438 #define SLAPI_REQCONTROLS                       51
439
440 #define SLAPI_ENTRY_PRE_OP                      52
441 #define SLAPI_ENTRY_POST_OP                     53
442
443 #define SLAPI_RESCONTROLS                       55
444 /* This is the spelling in the SunOne 5.2 docs */
445 #define SLAPI_RES_CONTROLS      SLAPI_RESCONTROLS
446 #define SLAPI_ADD_RESCONTROL                    56
447
448 #define SLAPI_ADD_TARGET                        SLAPI_TARGET_DN
449 #define SLAPI_ADD_ENTRY                         60
450 #define SLAPI_ADD_EXISTING_DN_ENTRY             61
451 #define SLAPI_ADD_PARENT_ENTRY                  62
452 #define SLAPI_ADD_PARENT_UNIQUEID               63
453 #define SLAPI_ADD_EXISTING_UNIQUEID_ENTRY       64
454
455 #define SLAPI_BIND_TARGET                       SLAPI_TARGET_DN
456 #define SLAPI_BIND_METHOD                       70
457 #define SLAPI_BIND_CREDENTIALS                  71
458 #define SLAPI_BIND_SASLMECHANISM                72
459 #define SLAPI_BIND_RET_SASLCREDS                73
460
461 #define SLAPI_COMPARE_TARGET                    SLAPI_TARGET_DN
462 #define SLAPI_COMPARE_TYPE                      80
463 #define SLAPI_COMPARE_VALUE                     81
464
465 #define SLAPI_DELETE_TARGET                     SLAPI_TARGET_DN
466 #define SLAPI_DELETE_EXISTING_ENTRY             SLAPI_ADD_EXISTING_DN_ENTRY
467
468 #define SLAPI_MODIFY_TARGET                     SLAPI_TARGET_DN
469 #define SLAPI_MODIFY_MODS                       90
470 #define SLAPI_MODIFY_EXISTING_ENTRY             SLAPI_ADD_EXISTING_DN_ENTRY
471
472 #define SLAPI_MODRDN_TARGET                     SLAPI_TARGET_DN
473 #define SLAPI_MODRDN_NEWRDN                     100
474 #define SLAPI_MODRDN_DELOLDRDN                  101
475 #define SLAPI_MODRDN_NEWSUPERIOR                102
476 #define SLAPI_MODRDN_EXISTING_ENTRY             SLAPI_ADD_EXISTING_DN_ENTRY
477 #define SLAPI_MODRDN_PARENT_ENTRY               104
478 #define SLAPI_MODRDN_NEWPARENT_ENTRY            105
479 #define SLAPI_MODRDN_TARGET_ENTRY               106
480 #define SLAPI_MODRDN_NEWSUPERIOR_ADDRESS        107
481
482 #define SLAPI_SEARCH_TARGET                     SLAPI_TARGET_DN
483 #define SLAPI_SEARCH_SCOPE                      110
484 #define SLAPI_SEARCH_DEREF                      111
485 #define SLAPI_SEARCH_SIZELIMIT                  112
486 #define SLAPI_SEARCH_TIMELIMIT                  113
487 #define SLAPI_SEARCH_FILTER                     114
488 #define SLAPI_SEARCH_STRFILTER                  115
489 #define SLAPI_SEARCH_ATTRS                      116
490 #define SLAPI_SEARCH_ATTRSONLY                  117
491
492 #define SLAPI_ABANDON_MSGID                     120
493
494 #define SLAPI_SEQ_TYPE                          150
495 #define SLAPI_SEQ_ATTRNAME                      151
496 #define SLAPI_SEQ_VAL                           152
497
498 #define SLAPI_EXT_OP_REQ_OID                    160
499 #define SLAPI_EXT_OP_REQ_VALUE                  161
500 #define SLAPI_EXT_OP_RET_OID                    162
501 #define SLAPI_EXT_OP_RET_VALUE                  163
502
503 #define SLAPI_MR_FILTER_ENTRY                   170     
504 #define SLAPI_MR_FILTER_TYPE                    171
505 #define SLAPI_MR_FILTER_VALUE                   172
506 #define SLAPI_MR_FILTER_OID                     173
507 #define SLAPI_MR_FILTER_DNATTRS                 174
508
509 #define SLAPI_LDIF2DB_FILE                      180
510 #define SLAPI_LDIF2DB_REMOVEDUPVALS             185
511
512 #define SLAPI_DB2LDIF_PRINTKEY                  183
513
514 #define SLAPI_PARENT_TXN                        190
515 #define SLAPI_TXN                               191
516
517 #define SLAPI_SEARCH_RESULT_SET                 193
518 #define SLAPI_SEARCH_RESULT_ENTRY               194
519 #define SLAPI_NENTRIES                          195
520 #define SLAPI_SEARCH_REFERRALS                  196
521
522 #define SLAPI_CHANGENUMBER                      197
523 #define SLAPI_LOG_OPERATION                     198
524
525 #define SLAPI_DBSIZE                            199
526
527 #define SLAPI_LOG_FATAL                         0
528 #define SLAPI_LOG_TRACE                         1
529 #define SLAPI_LOG_PACKETS                       2
530 #define SLAPI_LOG_ARGS                          3
531 #define SLAPI_LOG_CONNS                         4
532 #define SLAPI_LOG_BER                           5
533 #define SLAPI_LOG_FILTER                        6
534 #define SLAPI_LOG_CONFIG                        7
535 #define SLAPI_LOG_ACL                           8
536 #define SLAPI_LOG_SHELL                         9
537 #define SLAPI_LOG_PARSE                         10
538 #define SLAPI_LOG_HOUSE                         11
539 #define SLAPI_LOG_REPL                          12
540 #define SLAPI_LOG_CACHE                         13
541 #define SLAPI_LOG_PLUGIN                        14
542
543 #define SLAPI_OPERATION_BIND                    0x00000001L
544 #define SLAPI_OPERATION_UNBIND                  0x00000002L
545 #define SLAPI_OPERATION_SEARCH                  0x00000004L
546 #define SLAPI_OPERATION_MODIFY                  0x00000008L
547 #define SLAPI_OPERATION_ADD                     0x00000010L
548 #define SLAPI_OPERATION_DELETE                  0x00000020L
549 #define SLAPI_OPERATION_MODDN                   0x00000040L
550 #define SLAPI_OPERATION_MODRDN                  SLAPI_OPERATION_MODDN
551 #define SLAPI_OPERATION_COMPARE                 0x00000080L
552 #define SLAPI_OPERATION_ABANDON                 0x00000100L
553 #define SLAPI_OPERATION_EXTENDED                0x00000200L
554 #define SLAPI_OPERATION_ANY                     0xFFFFFFFFL
555 #define SLAPI_OPERATION_NONE                    0x00000000L
556
557 LDAP_END_DECL
558
559 #include "proto-slapi.h"
560
561 #endif /* _SLAPI_H */
562 #endif /* LDAP_SLAPI */