dsapi_const.h
Go to the documentation of this file.
1 /* Emacs mode: -*- C -*- */
2 
3 /*
4  * Copyright (c) 2004-2021, Isode Limited, London, England.
5  * All rights reserved.
6  *
7  * Acquisition and use of this software and related materials for any
8  * purpose requires a written licence agreement from Isode Limited, or
9  * a written licence from an organisation licenced by Isode Limited to
10  * grant such a licence.
11  *
12  */
13 
14 /*
15  * dsapi_const.h
16  *
17  * Symbolic constants.
18  *
19  */
20 
21 /*
22  *
23  *
24  * @VERSION@
25  */
26 
27 #ifndef ISODE_DSAPI_CONST_H
28 #define ISODE_DSAPI_CONST_H
29 
34 /* API Version. */
35 #define DSAPI_VERSION 2048
36 
38 /* Generic parameter representation. */
40 #ifndef PRIVATE_DEFINITION
41 #define DS_INT_TYPE 0x01000000
42 
43 #define DS_STR_TYPE 0x02000000
44 
45 #define DS_BOOL_TYPE 0x04000000
46 
47 #define DS_BYTES_TYPE 0x08000000
48 
50 /* Get parameter type from ID (see dsapi_const.h for parameter IDs). */
51 #define DS_PARAM_TYPE_MASK 0xff000000
52 
53 #define PARAMTYPE(id) ( id & DS_PARAM_TYPE_MASK )
54 
55 /* Add typing bits to a parameter ID value. */
56 #define MAKE_PARAM_ID(val, param_type) ( val | param_type )
57 
58 #endif
59 
66 typedef enum {
97  DS_E_BADDN = 10,
129 } DS_Status;
130 
138 typedef enum {
139  DS_E_SUCCESS = 0,
140  /*< Successful operation. */
141 
181 } DS_ErrorType;
182 
190 typedef enum {
313 } DS_ErrorValue;
314 
326 #define DS_SVC_OPT_PREFERCHAIN MAKE_PARAM_ID(1, DS_BOOL_TYPE)
327 
328 #define DS_SVC_OPT_CHAININGPROHIBIT MAKE_PARAM_ID(2, DS_BOOL_TYPE)
329 
331 #define DS_SVC_OPT_LOCALSCOPE MAKE_PARAM_ID(3, DS_BOOL_TYPE)
332 
334 #define DS_SVC_OPT_DONTUSECOPY MAKE_PARAM_ID(4, DS_BOOL_TYPE)
335 
337 #define DS_SVC_OPT_DONTDEREFALIAS MAKE_PARAM_ID(5, DS_BOOL_TYPE)
338 
340 #define DS_SVC_OPT_SUBENTRIES MAKE_PARAM_ID(6, DS_BOOL_TYPE)
341 
343 #define DS_SVC_OPT_COPYSHALLDO MAKE_PARAM_ID(7, DS_BOOL_TYPE)
344 
348 #define DS_SVC_PRIORITY MAKE_PARAM_ID(8, DS_INT_TYPE)
349 
351 #define DS_SVC_TIMELIMIT MAKE_PARAM_ID(9, DS_INT_TYPE)
352 
354 #define DS_SVC_SIZELIMIT MAKE_PARAM_ID(10, DS_INT_TYPE)
355 
357 #define DS_EXT_OPT_MANAGEDSAIT MAKE_PARAM_ID(11, DS_BOOL_TYPE)
358 
360 #define DS_SEC_SIGNED MAKE_PARAM_ID(12, DS_BOOL_TYPE)
361 
364 #define DS_SEC_ENCRYPTED MAKE_PARAM_ID(13, DS_BOOL_TYPE)
365 
367 #define DS_SVC_OPT_ATTRSONLY MAKE_PARAM_ID(14, DS_BOOL_TYPE)
368 
372 #define DS_SVC_OPT_SEARCHALIASES MAKE_PARAM_ID(15, DS_BOOL_TYPE)
373 
377 #define DS_EXT_OPT_USEALIASONUPDATE MAKE_PARAM_ID(16, DS_BOOL_TYPE)
378 
382 #define DS_SVC_PASSWORDPOLICY MAKE_PARAM_ID(17, DS_BOOL_TYPE)
383 
387 #define DS_SVC_OPT_PAGESIZE MAKE_PARAM_ID(18, DS_INT_TYPE)
388 
392 #define DS_SEC_DISABLEVERIFICATION MAKE_PARAM_ID(19, DS_BOOL_TYPE)
393 
397 #define DS_SVC_OPT_TXNID MAKE_PARAM_ID(20, DS_BYTES_TYPE)
398 
411 typedef enum {
444 
447 #endif /* ISODE_DSAPI_CONST_H */
@ DS_E_CONNECTIONLOST
Definition: dsapi_const.h:125
@ DS_PP_MUST_SUPPLY_OLD_PASSWORD
Definition: dsapi_const.h:424
@ DS_E_SEC_NOINFORMATION
Definition: dsapi_const.h:278
@ DS_E_ABORTED
Definition: dsapi_const.h:122
@ DS_E_UPD_NOOBJECTCLASSMODS
Definition: dsapi_const.h:308
@ DS_E_UNKNOWN
Definition: dsapi_const.h:175
@ DS_E_AB_NOSUCHOPERATION
Definition: dsapi_const.h:281
@ DS_E_SVC_INVALIDQUERYREFERENCE
Definition: dsapi_const.h:260
@ DS_E_NAME
Definition: dsapi_const.h:145
DS_Status
Definition: dsapi_const.h:66
@ DS_E_NAME_NOSUCHOBJECT
Definition: dsapi_const.h:212
@ DS_E_SVC_UNWILLINGTOPERFORM
Definition: dsapi_const.h:230
@ DS_E_AT_INVALIDATTRIBUTESYNTAX
Definition: dsapi_const.h:197
@ DS_E_SERVICE
Definition: dsapi_const.h:148
@ DS_PP_PASSWORD_MOD_NOT_ALLOWED
Definition: dsapi_const.h:421
@ DS_E_SEC_ACCESSRIGHTS
Definition: dsapi_const.h:269
@ DS_E_SEC_PROTECTIONREQUIRED
Definition: dsapi_const.h:275
@ DS_E_SEC_INVALIDCREDENTIALS
Definition: dsapi_const.h:266
@ DS_E_SVC_INVALIDREFERENCE
Definition: dsapi_const.h:239
@ DS_E_BADATTRTYPE
Definition: dsapi_const.h:85
@ DS_PP_PASSWORD_TOO_SHORT
Definition: dsapi_const.h:431
DS_PasswordPolicyError
Definition: dsapi_const.h:411
DS_ErrorType
Definition: dsapi_const.h:138
@ DS_PP_PASSWORD_IN_HISTORY
Definition: dsapi_const.h:437
@ DS_E_BADPARAM
Definition: dsapi_const.h:73
@ DS_E_REMOTE
Definition: dsapi_const.h:172
@ DS_E_ABANDONED
Definition: dsapi_const.h:154
@ DS_E_AT_CONSTRAINTVIOLATION
Definition: dsapi_const.h:206
@ DS_E_SEC_INVALIDSIGNATURE
Definition: dsapi_const.h:272
@ DS_E_OPFAILED
Definition: dsapi_const.h:119
@ DS_E_X509
Definition: dsapi_const.h:178
@ DS_E_UPD_AFFECTSMULTIPLEDSAS
Definition: dsapi_const.h:305
@ DS_PP_NO_ERROR
Definition: dsapi_const.h:440
@ DS_PP_PASSWORD_EXPIRED
Definition: dsapi_const.h:412
@ DS_E_AT_INAPPROPRIATEMATCHING
Definition: dsapi_const.h:203
@ DS_E_SVC_OUTOFSCOPE
Definition: dsapi_const.h:254
@ DS_E_DSOPFAILED
Definition: dsapi_const.h:103
@ DS_E_SVC_BUSY
Definition: dsapi_const.h:224
@ DS_E_SVC_UNABLETOPROCEED
Definition: dsapi_const.h:236
@ DS_E_NOERROR
Definition: dsapi_const.h:67
@ DS_E_BADATTRVALUE
Definition: dsapi_const.h:88
@ DS_E_NOINFO
Definition: dsapi_const.h:191
@ DS_E_AB_CANNOTABANDON
Definition: dsapi_const.h:287
@ DS_PP_CHANGE_AFTER_RESET
Definition: dsapi_const.h:418
@ DS_E_SECURITY
Definition: dsapi_const.h:157
@ DS_E_UPD_NOTONNONLEAF
Definition: dsapi_const.h:296
@ DS_E_LOCAL
Definition: dsapi_const.h:169
@ DS_E_NOTBOUND
Definition: dsapi_const.h:109
@ DS_E_UPD_NOTONRDN
Definition: dsapi_const.h:299
@ DS_E_ABANDONFAILED
Definition: dsapi_const.h:160
@ DS_E_BADENTRY
Definition: dsapi_const.h:100
@ DS_E_NOTFOUND
Definition: dsapi_const.h:76
@ DS_E_BADDN
Definition: dsapi_const.h:97
@ DS_E_SVC_TIMELIMITEXCEEDED
Definition: dsapi_const.h:242
@ DS_E_INTERNAL
Definition: dsapi_const.h:106
@ DS_E_ATTRIBUTE
Definition: dsapi_const.h:142
@ DS_E_NOMEMORY
Definition: dsapi_const.h:79
@ DS_E_X509_RESULTSDISCARDED
Definition: dsapi_const.h:311
@ DS_PP_PASSWORD_TOO_YOUNG
Definition: dsapi_const.h:434
@ DS_E_SIGNEDOPFAILED
Definition: dsapi_const.h:116
@ DS_E_SEC_AUTHENTICATION
Definition: dsapi_const.h:263
@ DS_E_SVC_ADMINISTRATIVELIMITEXCEEDED
Definition: dsapi_const.h:245
@ DS_E_SVC_CHAININGREQUIRED
Definition: dsapi_const.h:233
@ DS_E_BADADDR
Definition: dsapi_const.h:113
@ DS_E_DSAREFERRAL
Definition: dsapi_const.h:166
@ DS_E_AB_TOOLATE
Definition: dsapi_const.h:284
DS_ErrorValue
Definition: dsapi_const.h:190
@ DS_PP_ACCOUNT_LOCKED
Definition: dsapi_const.h:415
@ DS_E_AT_UNDEFINEDATTRIBUTETYPE
Definition: dsapi_const.h:200
@ DS_E_SVC_LOOPDETECTED
Definition: dsapi_const.h:248
@ DS_E_SVC_UNAVAILABLECRITICALEXTENSION
Definition: dsapi_const.h:251
@ DS_E_NAME_ALIASDEREFERENCE
Definition: dsapi_const.h:221
@ DS_E_NOTIMPLEMENTED
Definition: dsapi_const.h:82
@ DS_E_NAME_ALIASPROBLEM
Definition: dsapi_const.h:215
@ DS_E_AT_NOSUCHATTRIBUTE
Definition: dsapi_const.h:194
@ DS_E_REFERRAL
Definition: dsapi_const.h:151
@ DS_E_SVC_DITERROR
Definition: dsapi_const.h:257
@ DS_E_SVC_UNAVAILABLE
Definition: dsapi_const.h:227
@ DS_E_NAME_INVALIDATTRIBUTESYNTAX
Definition: dsapi_const.h:218
@ DS_E_AT_TYPEORVALUEEXISTS
Definition: dsapi_const.h:209
@ DS_E_NOSPACE
Definition: dsapi_const.h:70
@ DS_E_BADATTRSYNTAX
Definition: dsapi_const.h:91
@ DS_E_UPD_OBJECTCLASSVIOLATION
Definition: dsapi_const.h:293
@ DS_E_UPD_ALREADYEXISTS
Definition: dsapi_const.h:302
@ DS_E_UPD_NAMINGVIOLATION
Definition: dsapi_const.h:290
@ DS_PP_INSUFFICIENT_PASSWORD_QUALITY
Definition: dsapi_const.h:428
@ DS_E_BADFILTER
Definition: dsapi_const.h:94
@ DS_E_UPDATE
Definition: dsapi_const.h:163

All rights reserved © 2002 - 2024 Isode Ltd.