Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: ldap.h
/* $OpenLDAP$ */
[0] Fix | Delete
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright 1998-2018 The OpenLDAP Foundation.
[3] Fix | Delete
* All rights reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted only as authorized by the OpenLDAP
[7] Fix | Delete
* Public License.
[8] Fix | Delete
*
[9] Fix | Delete
* A copy of this license is available in file LICENSE in the
[10] Fix | Delete
* top-level directory of the distribution or, alternatively, at
[11] Fix | Delete
* <http://www.OpenLDAP.org/license.html>.
[12] Fix | Delete
*/
[13] Fix | Delete
/* Portions Copyright (c) 1990 Regents of the University of Michigan.
[14] Fix | Delete
* All rights reserved.
[15] Fix | Delete
*
[16] Fix | Delete
* Redistribution and use in source and binary forms are permitted
[17] Fix | Delete
* provided that this notice is preserved and that due credit is given
[18] Fix | Delete
* to the University of Michigan at Ann Arbor. The name of the University
[19] Fix | Delete
* may not be used to endorse or promote products derived from this
[20] Fix | Delete
* software without specific prior written permission. This software
[21] Fix | Delete
* is provided ``as is'' without express or implied warranty.
[22] Fix | Delete
*/
[23] Fix | Delete
[24] Fix | Delete
#ifndef _LDAP_H
[25] Fix | Delete
#define _LDAP_H
[26] Fix | Delete
[27] Fix | Delete
/* pull in lber */
[28] Fix | Delete
#include <lber.h>
[29] Fix | Delete
[30] Fix | Delete
/* include version and API feature defines */
[31] Fix | Delete
#include <ldap_features.h>
[32] Fix | Delete
[33] Fix | Delete
LDAP_BEGIN_DECL
[34] Fix | Delete
[35] Fix | Delete
#define LDAP_VERSION1 1
[36] Fix | Delete
#define LDAP_VERSION2 2
[37] Fix | Delete
#define LDAP_VERSION3 3
[38] Fix | Delete
[39] Fix | Delete
#define LDAP_VERSION_MIN LDAP_VERSION2
[40] Fix | Delete
#define LDAP_VERSION LDAP_VERSION2
[41] Fix | Delete
#define LDAP_VERSION_MAX LDAP_VERSION3
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* We use 3000+n here because it is above 1823 (for RFC 1823),
[45] Fix | Delete
* above 2000+rev of IETF LDAPEXT draft (now quite dated),
[46] Fix | Delete
* yet below allocations for new RFCs (just in case there is
[47] Fix | Delete
* someday an RFC produced).
[48] Fix | Delete
*/
[49] Fix | Delete
#define LDAP_API_VERSION 3001
[50] Fix | Delete
#define LDAP_VENDOR_NAME "OpenLDAP"
[51] Fix | Delete
[52] Fix | Delete
/* OpenLDAP API Features */
[53] Fix | Delete
#define LDAP_API_FEATURE_X_OPENLDAP LDAP_VENDOR_VERSION
[54] Fix | Delete
[55] Fix | Delete
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT ) || \
[56] Fix | Delete
( defined( LDAP_THREAD_SAFE ) && \
[57] Fix | Delete
defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE ) )
[58] Fix | Delete
/* -lldap may or may not be thread safe */
[59] Fix | Delete
/* -lldap_r, if available, is always thread safe */
[60] Fix | Delete
# define LDAP_API_FEATURE_THREAD_SAFE 1
[61] Fix | Delete
# define LDAP_API_FEATURE_SESSION_THREAD_SAFE 1
[62] Fix | Delete
# define LDAP_API_FEATURE_OPERATION_THREAD_SAFE 1
[63] Fix | Delete
#endif
[64] Fix | Delete
#if defined( LDAP_THREAD_SAFE ) && \
[65] Fix | Delete
defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
[66] Fix | Delete
/* #define LDAP_API_FEATURE_SESSION_SAFE 1 */
[67] Fix | Delete
/* #define LDAP_API_OPERATION_SESSION_SAFE 1 */
[68] Fix | Delete
#endif
[69] Fix | Delete
[70] Fix | Delete
[71] Fix | Delete
#define LDAP_PORT 389 /* ldap:/// default LDAP port */
[72] Fix | Delete
#define LDAPS_PORT 636 /* ldaps:/// default LDAP over TLS port */
[73] Fix | Delete
[74] Fix | Delete
#define LDAP_ROOT_DSE ""
[75] Fix | Delete
#define LDAP_NO_ATTRS "1.1"
[76] Fix | Delete
#define LDAP_ALL_USER_ATTRIBUTES "*"
[77] Fix | Delete
#define LDAP_ALL_OPERATIONAL_ATTRIBUTES "+" /* RFC 3673 */
[78] Fix | Delete
[79] Fix | Delete
/* RFC 4511: maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) -- */
[80] Fix | Delete
#define LDAP_MAXINT (2147483647)
[81] Fix | Delete
[82] Fix | Delete
/*
[83] Fix | Delete
* LDAP_OPTions
[84] Fix | Delete
* 0x0000 - 0x0fff reserved for api options
[85] Fix | Delete
* 0x1000 - 0x3fff reserved for api extended options
[86] Fix | Delete
* 0x4000 - 0x7fff reserved for private and experimental options
[87] Fix | Delete
*/
[88] Fix | Delete
[89] Fix | Delete
#define LDAP_OPT_API_INFO 0x0000
[90] Fix | Delete
#define LDAP_OPT_DESC 0x0001 /* historic */
[91] Fix | Delete
#define LDAP_OPT_DEREF 0x0002
[92] Fix | Delete
#define LDAP_OPT_SIZELIMIT 0x0003
[93] Fix | Delete
#define LDAP_OPT_TIMELIMIT 0x0004
[94] Fix | Delete
/* 0x05 - 0x07 not defined */
[95] Fix | Delete
#define LDAP_OPT_REFERRALS 0x0008
[96] Fix | Delete
#define LDAP_OPT_RESTART 0x0009
[97] Fix | Delete
/* 0x0a - 0x10 not defined */
[98] Fix | Delete
#define LDAP_OPT_PROTOCOL_VERSION 0x0011
[99] Fix | Delete
#define LDAP_OPT_SERVER_CONTROLS 0x0012
[100] Fix | Delete
#define LDAP_OPT_CLIENT_CONTROLS 0x0013
[101] Fix | Delete
/* 0x14 not defined */
[102] Fix | Delete
#define LDAP_OPT_API_FEATURE_INFO 0x0015
[103] Fix | Delete
/* 0x16 - 0x2f not defined */
[104] Fix | Delete
#define LDAP_OPT_HOST_NAME 0x0030
[105] Fix | Delete
#define LDAP_OPT_RESULT_CODE 0x0031
[106] Fix | Delete
#define LDAP_OPT_ERROR_NUMBER LDAP_OPT_RESULT_CODE
[107] Fix | Delete
#define LDAP_OPT_DIAGNOSTIC_MESSAGE 0x0032
[108] Fix | Delete
#define LDAP_OPT_ERROR_STRING LDAP_OPT_DIAGNOSTIC_MESSAGE
[109] Fix | Delete
#define LDAP_OPT_MATCHED_DN 0x0033
[110] Fix | Delete
/* 0x0034 - 0x3fff not defined */
[111] Fix | Delete
/* 0x0091 used by Microsoft for LDAP_OPT_AUTO_RECONNECT */
[112] Fix | Delete
#define LDAP_OPT_SSPI_FLAGS 0x0092
[113] Fix | Delete
/* 0x0093 used by Microsoft for LDAP_OPT_SSL_INFO */
[114] Fix | Delete
/* 0x0094 used by Microsoft for LDAP_OPT_REF_DEREF_CONN_PER_MSG */
[115] Fix | Delete
#define LDAP_OPT_SIGN 0x0095
[116] Fix | Delete
#define LDAP_OPT_ENCRYPT 0x0096
[117] Fix | Delete
#define LDAP_OPT_SASL_METHOD 0x0097
[118] Fix | Delete
/* 0x0098 used by Microsoft for LDAP_OPT_AREC_EXCLUSIVE */
[119] Fix | Delete
#define LDAP_OPT_SECURITY_CONTEXT 0x0099
[120] Fix | Delete
/* 0x009A used by Microsoft for LDAP_OPT_ROOTDSE_CACHE */
[121] Fix | Delete
/* 0x009B - 0x3fff not defined */
[122] Fix | Delete
[123] Fix | Delete
/* API Extensions */
[124] Fix | Delete
#define LDAP_OPT_API_EXTENSION_BASE 0x4000 /* API extensions */
[125] Fix | Delete
[126] Fix | Delete
/* private and experimental options */
[127] Fix | Delete
/* OpenLDAP specific options */
[128] Fix | Delete
#define LDAP_OPT_DEBUG_LEVEL 0x5001 /* debug level */
[129] Fix | Delete
#define LDAP_OPT_TIMEOUT 0x5002 /* default timeout */
[130] Fix | Delete
#define LDAP_OPT_REFHOPLIMIT 0x5003 /* ref hop limit */
[131] Fix | Delete
#define LDAP_OPT_NETWORK_TIMEOUT 0x5005 /* socket level timeout */
[132] Fix | Delete
#define LDAP_OPT_URI 0x5006
[133] Fix | Delete
#define LDAP_OPT_REFERRAL_URLS 0x5007 /* Referral URLs */
[134] Fix | Delete
#define LDAP_OPT_SOCKBUF 0x5008 /* sockbuf */
[135] Fix | Delete
#define LDAP_OPT_DEFBASE 0x5009 /* searchbase */
[136] Fix | Delete
#define LDAP_OPT_CONNECT_ASYNC 0x5010 /* create connections asynchronously */
[137] Fix | Delete
#define LDAP_OPT_CONNECT_CB 0x5011 /* connection callbacks */
[138] Fix | Delete
#define LDAP_OPT_SESSION_REFCNT 0x5012 /* session reference count */
[139] Fix | Delete
[140] Fix | Delete
/* OpenLDAP TLS options */
[141] Fix | Delete
#define LDAP_OPT_X_TLS 0x6000
[142] Fix | Delete
#define LDAP_OPT_X_TLS_CTX 0x6001 /* OpenSSL CTX* */
[143] Fix | Delete
#define LDAP_OPT_X_TLS_CACERTFILE 0x6002
[144] Fix | Delete
#define LDAP_OPT_X_TLS_CACERTDIR 0x6003
[145] Fix | Delete
#define LDAP_OPT_X_TLS_CERTFILE 0x6004
[146] Fix | Delete
#define LDAP_OPT_X_TLS_KEYFILE 0x6005
[147] Fix | Delete
#define LDAP_OPT_X_TLS_REQUIRE_CERT 0x6006
[148] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_MIN 0x6007
[149] Fix | Delete
#define LDAP_OPT_X_TLS_CIPHER_SUITE 0x6008
[150] Fix | Delete
#define LDAP_OPT_X_TLS_RANDOM_FILE 0x6009
[151] Fix | Delete
#define LDAP_OPT_X_TLS_SSL_CTX 0x600a /* OpenSSL SSL* */
[152] Fix | Delete
#define LDAP_OPT_X_TLS_CRLCHECK 0x600b
[153] Fix | Delete
#define LDAP_OPT_X_TLS_CONNECT_CB 0x600c
[154] Fix | Delete
#define LDAP_OPT_X_TLS_CONNECT_ARG 0x600d
[155] Fix | Delete
#define LDAP_OPT_X_TLS_DHFILE 0x600e
[156] Fix | Delete
#define LDAP_OPT_X_TLS_NEWCTX 0x600f
[157] Fix | Delete
#define LDAP_OPT_X_TLS_CRLFILE 0x6010 /* GNUtls only */
[158] Fix | Delete
#define LDAP_OPT_X_TLS_PACKAGE 0x6011
[159] Fix | Delete
#define LDAP_OPT_X_TLS_ECNAME 0x6012
[160] Fix | Delete
#define LDAP_OPT_X_TLS_PEERCERT 0x6015 /* read-only */
[161] Fix | Delete
#define LDAP_OPT_X_TLS_REQUIRE_SAN 0x601a
[162] Fix | Delete
[163] Fix | Delete
#define LDAP_OPT_X_TLS_NEVER 0
[164] Fix | Delete
#define LDAP_OPT_X_TLS_HARD 1
[165] Fix | Delete
#define LDAP_OPT_X_TLS_DEMAND 2
[166] Fix | Delete
#define LDAP_OPT_X_TLS_ALLOW 3
[167] Fix | Delete
#define LDAP_OPT_X_TLS_TRY 4
[168] Fix | Delete
[169] Fix | Delete
#define LDAP_OPT_X_TLS_CRL_NONE 0
[170] Fix | Delete
#define LDAP_OPT_X_TLS_CRL_PEER 1
[171] Fix | Delete
#define LDAP_OPT_X_TLS_CRL_ALL 2
[172] Fix | Delete
[173] Fix | Delete
/* for LDAP_OPT_X_TLS_PROTOCOL_MIN */
[174] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL(maj,min) (((maj) << 8) + (min))
[175] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_SSL2 (2 << 8)
[176] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_SSL3 (3 << 8)
[177] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_0 ((3 << 8) + 1)
[178] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_1 ((3 << 8) + 2)
[179] Fix | Delete
#define LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 ((3 << 8) + 3)
[180] Fix | Delete
[181] Fix | Delete
#define LDAP_OPT_X_SASL_CBINDING_NONE 0
[182] Fix | Delete
#define LDAP_OPT_X_SASL_CBINDING_TLS_UNIQUE 1
[183] Fix | Delete
#define LDAP_OPT_X_SASL_CBINDING_TLS_ENDPOINT 2
[184] Fix | Delete
[185] Fix | Delete
/* OpenLDAP SASL options */
[186] Fix | Delete
#define LDAP_OPT_X_SASL_MECH 0x6100
[187] Fix | Delete
#define LDAP_OPT_X_SASL_REALM 0x6101
[188] Fix | Delete
#define LDAP_OPT_X_SASL_AUTHCID 0x6102
[189] Fix | Delete
#define LDAP_OPT_X_SASL_AUTHZID 0x6103
[190] Fix | Delete
#define LDAP_OPT_X_SASL_SSF 0x6104 /* read-only */
[191] Fix | Delete
#define LDAP_OPT_X_SASL_SSF_EXTERNAL 0x6105 /* write-only */
[192] Fix | Delete
#define LDAP_OPT_X_SASL_SECPROPS 0x6106 /* write-only */
[193] Fix | Delete
#define LDAP_OPT_X_SASL_SSF_MIN 0x6107
[194] Fix | Delete
#define LDAP_OPT_X_SASL_SSF_MAX 0x6108
[195] Fix | Delete
#define LDAP_OPT_X_SASL_MAXBUFSIZE 0x6109
[196] Fix | Delete
#define LDAP_OPT_X_SASL_MECHLIST 0x610a /* read-only */
[197] Fix | Delete
#define LDAP_OPT_X_SASL_NOCANON 0x610b
[198] Fix | Delete
#define LDAP_OPT_X_SASL_USERNAME 0x610c /* read-only */
[199] Fix | Delete
#define LDAP_OPT_X_SASL_GSS_CREDS 0x610d
[200] Fix | Delete
#define LDAP_OPT_X_SASL_CBINDING 0x610e
[201] Fix | Delete
[202] Fix | Delete
/* OpenLDAP GSSAPI options */
[203] Fix | Delete
#define LDAP_OPT_X_GSSAPI_DO_NOT_FREE_CONTEXT 0x6200
[204] Fix | Delete
#define LDAP_OPT_X_GSSAPI_ALLOW_REMOTE_PRINCIPAL 0x6201
[205] Fix | Delete
[206] Fix | Delete
/*
[207] Fix | Delete
* OpenLDAP per connection tcp-keepalive settings
[208] Fix | Delete
* (Linux only, ignored where unsupported)
[209] Fix | Delete
*/
[210] Fix | Delete
#define LDAP_OPT_X_KEEPALIVE_IDLE 0x6300
[211] Fix | Delete
#define LDAP_OPT_X_KEEPALIVE_PROBES 0x6301
[212] Fix | Delete
#define LDAP_OPT_X_KEEPALIVE_INTERVAL 0x6302
[213] Fix | Delete
[214] Fix | Delete
/* Private API Extensions -- reserved for application use */
[215] Fix | Delete
#define LDAP_OPT_PRIVATE_EXTENSION_BASE 0x7000 /* Private API inclusive */
[216] Fix | Delete
[217] Fix | Delete
/*
[218] Fix | Delete
* ldap_get_option() and ldap_set_option() return values.
[219] Fix | Delete
* As later versions may return other values indicating
[220] Fix | Delete
* failure, current applications should only compare returned
[221] Fix | Delete
* value against LDAP_OPT_SUCCESS.
[222] Fix | Delete
*/
[223] Fix | Delete
#define LDAP_OPT_SUCCESS 0
[224] Fix | Delete
#define LDAP_OPT_ERROR (-1)
[225] Fix | Delete
[226] Fix | Delete
/* option on/off values */
[227] Fix | Delete
#define LDAP_OPT_ON ((void *) &ber_pvt_opt_on)
[228] Fix | Delete
#define LDAP_OPT_OFF ((void *) 0)
[229] Fix | Delete
[230] Fix | Delete
typedef struct ldapapiinfo {
[231] Fix | Delete
int ldapai_info_version; /* version of LDAPAPIInfo */
[232] Fix | Delete
#define LDAP_API_INFO_VERSION (1)
[233] Fix | Delete
int ldapai_api_version; /* revision of API supported */
[234] Fix | Delete
int ldapai_protocol_version; /* highest LDAP version supported */
[235] Fix | Delete
char **ldapai_extensions; /* names of API extensions */
[236] Fix | Delete
char *ldapai_vendor_name; /* name of supplier */
[237] Fix | Delete
int ldapai_vendor_version; /* supplier-specific version * 100 */
[238] Fix | Delete
} LDAPAPIInfo;
[239] Fix | Delete
[240] Fix | Delete
typedef struct ldap_apifeature_info {
[241] Fix | Delete
int ldapaif_info_version; /* version of LDAPAPIFeatureInfo */
[242] Fix | Delete
#define LDAP_FEATURE_INFO_VERSION (1) /* apifeature_info struct version */
[243] Fix | Delete
char* ldapaif_name; /* LDAP_API_FEATURE_* (less prefix) */
[244] Fix | Delete
int ldapaif_version; /* value of LDAP_API_FEATURE_... */
[245] Fix | Delete
} LDAPAPIFeatureInfo;
[246] Fix | Delete
[247] Fix | Delete
/*
[248] Fix | Delete
* LDAP Control structure
[249] Fix | Delete
*/
[250] Fix | Delete
typedef struct ldapcontrol {
[251] Fix | Delete
char * ldctl_oid; /* numericoid of control */
[252] Fix | Delete
struct berval ldctl_value; /* encoded value of control */
[253] Fix | Delete
char ldctl_iscritical; /* criticality */
[254] Fix | Delete
} LDAPControl;
[255] Fix | Delete
[256] Fix | Delete
/* LDAP Controls */
[257] Fix | Delete
/* standard track controls */
[258] Fix | Delete
#define LDAP_CONTROL_MANAGEDSAIT "2.16.840.1.113730.3.4.2" /* RFC 3296 */
[259] Fix | Delete
#define LDAP_CONTROL_PROXY_AUTHZ "2.16.840.1.113730.3.4.18" /* RFC 4370 */
[260] Fix | Delete
#define LDAP_CONTROL_SUBENTRIES "1.3.6.1.4.1.4203.1.10.1" /* RFC 3672 */
[261] Fix | Delete
[262] Fix | Delete
#define LDAP_CONTROL_VALUESRETURNFILTER "1.2.826.0.1.3344810.2.3"/* RFC 3876 */
[263] Fix | Delete
[264] Fix | Delete
#define LDAP_CONTROL_ASSERT "1.3.6.1.1.12" /* RFC 4528 */
[265] Fix | Delete
#define LDAP_CONTROL_PRE_READ "1.3.6.1.1.13.1" /* RFC 4527 */
[266] Fix | Delete
#define LDAP_CONTROL_POST_READ "1.3.6.1.1.13.2" /* RFC 4527 */
[267] Fix | Delete
[268] Fix | Delete
#define LDAP_CONTROL_SORTREQUEST "1.2.840.113556.1.4.473" /* RFC 2891 */
[269] Fix | Delete
#define LDAP_CONTROL_SORTRESPONSE "1.2.840.113556.1.4.474" /* RFC 2891 */
[270] Fix | Delete
[271] Fix | Delete
/* non-standard track controls */
[272] Fix | Delete
#define LDAP_CONTROL_PAGEDRESULTS "1.2.840.113556.1.4.319" /* RFC 2696 */
[273] Fix | Delete
[274] Fix | Delete
/* LDAP Content Synchronization Operation -- RFC 4533 */
[275] Fix | Delete
#define LDAP_SYNC_OID "1.3.6.1.4.1.4203.1.9.1"
[276] Fix | Delete
#define LDAP_CONTROL_SYNC LDAP_SYNC_OID ".1"
[277] Fix | Delete
#define LDAP_CONTROL_SYNC_STATE LDAP_SYNC_OID ".2"
[278] Fix | Delete
#define LDAP_CONTROL_SYNC_DONE LDAP_SYNC_OID ".3"
[279] Fix | Delete
#define LDAP_SYNC_INFO LDAP_SYNC_OID ".4"
[280] Fix | Delete
[281] Fix | Delete
#define LDAP_SYNC_NONE 0x00
[282] Fix | Delete
#define LDAP_SYNC_REFRESH_ONLY 0x01
[283] Fix | Delete
#define LDAP_SYNC_RESERVED 0x02
[284] Fix | Delete
#define LDAP_SYNC_REFRESH_AND_PERSIST 0x03
[285] Fix | Delete
[286] Fix | Delete
#define LDAP_SYNC_REFRESH_PRESENTS 0
[287] Fix | Delete
#define LDAP_SYNC_REFRESH_DELETES 1
[288] Fix | Delete
[289] Fix | Delete
#define LDAP_TAG_SYNC_NEW_COOKIE ((ber_tag_t) 0x80U)
[290] Fix | Delete
#define LDAP_TAG_SYNC_REFRESH_DELETE ((ber_tag_t) 0xa1U)
[291] Fix | Delete
#define LDAP_TAG_SYNC_REFRESH_PRESENT ((ber_tag_t) 0xa2U)
[292] Fix | Delete
#define LDAP_TAG_SYNC_ID_SET ((ber_tag_t) 0xa3U)
[293] Fix | Delete
[294] Fix | Delete
#define LDAP_TAG_SYNC_COOKIE ((ber_tag_t) 0x04U)
[295] Fix | Delete
#define LDAP_TAG_REFRESHDELETES ((ber_tag_t) 0x01U)
[296] Fix | Delete
#define LDAP_TAG_REFRESHDONE ((ber_tag_t) 0x01U)
[297] Fix | Delete
#define LDAP_TAG_RELOAD_HINT ((ber_tag_t) 0x01U)
[298] Fix | Delete
[299] Fix | Delete
#define LDAP_SYNC_PRESENT 0
[300] Fix | Delete
#define LDAP_SYNC_ADD 1
[301] Fix | Delete
#define LDAP_SYNC_MODIFY 2
[302] Fix | Delete
#define LDAP_SYNC_DELETE 3
[303] Fix | Delete
#define LDAP_SYNC_NEW_COOKIE 4
[304] Fix | Delete
[305] Fix | Delete
/* LDAP Don't Use Copy Control (RFC 6171) */
[306] Fix | Delete
#define LDAP_CONTROL_DONTUSECOPY "1.3.6.1.1.22"
[307] Fix | Delete
[308] Fix | Delete
/* Password policy Controls *//* work in progress */
[309] Fix | Delete
/* ITS#3458: released; disabled by default */
[310] Fix | Delete
#define LDAP_CONTROL_PASSWORDPOLICYREQUEST "1.3.6.1.4.1.42.2.27.8.5.1"
[311] Fix | Delete
#define LDAP_CONTROL_PASSWORDPOLICYRESPONSE "1.3.6.1.4.1.42.2.27.8.5.1"
[312] Fix | Delete
[313] Fix | Delete
/* various works in progress */
[314] Fix | Delete
#define LDAP_CONTROL_NOOP "1.3.6.1.4.1.4203.666.5.2"
[315] Fix | Delete
#define LDAP_CONTROL_NO_SUBORDINATES "1.3.6.1.4.1.4203.666.5.11"
[316] Fix | Delete
#define LDAP_CONTROL_RELAX "1.3.6.1.4.1.4203.666.5.12"
[317] Fix | Delete
#define LDAP_CONTROL_MANAGEDIT LDAP_CONTROL_RELAX
[318] Fix | Delete
#define LDAP_CONTROL_SLURP "1.3.6.1.4.1.4203.666.5.13"
[319] Fix | Delete
#define LDAP_CONTROL_VALSORT "1.3.6.1.4.1.4203.666.5.14"
[320] Fix | Delete
#define LDAP_CONTROL_X_DEREF "1.3.6.1.4.1.4203.666.5.16"
[321] Fix | Delete
#define LDAP_CONTROL_X_WHATFAILED "1.3.6.1.4.1.4203.666.5.17"
[322] Fix | Delete
[323] Fix | Delete
/* LDAP Chaining Behavior Control *//* work in progress */
[324] Fix | Delete
/* <draft-sermersheim-ldap-chaining>;
[325] Fix | Delete
* see also LDAP_NO_REFERRALS_FOUND, LDAP_CANNOT_CHAIN */
[326] Fix | Delete
#define LDAP_CONTROL_X_CHAINING_BEHAVIOR "1.3.6.1.4.1.4203.666.11.3"
[327] Fix | Delete
[328] Fix | Delete
#define LDAP_CHAINING_PREFERRED 0
[329] Fix | Delete
#define LDAP_CHAINING_REQUIRED 1
[330] Fix | Delete
#define LDAP_REFERRALS_PREFERRED 2
[331] Fix | Delete
#define LDAP_REFERRALS_REQUIRED 3
[332] Fix | Delete
[333] Fix | Delete
/* MS Active Directory controls (for compatibility) */
[334] Fix | Delete
#define LDAP_CONTROL_X_INCREMENTAL_VALUES "1.2.840.113556.1.4.802"
[335] Fix | Delete
#define LDAP_CONTROL_X_DOMAIN_SCOPE "1.2.840.113556.1.4.1339"
[336] Fix | Delete
#define LDAP_CONTROL_X_PERMISSIVE_MODIFY "1.2.840.113556.1.4.1413"
[337] Fix | Delete
#define LDAP_CONTROL_X_SEARCH_OPTIONS "1.2.840.113556.1.4.1340"
[338] Fix | Delete
#define LDAP_SEARCH_FLAG_DOMAIN_SCOPE 1 /* do not generate referrals */
[339] Fix | Delete
#define LDAP_SEARCH_FLAG_PHANTOM_ROOT 2 /* search all subordinate NCs */
[340] Fix | Delete
#define LDAP_CONTROL_X_TREE_DELETE "1.2.840.113556.1.4.805"
[341] Fix | Delete
[342] Fix | Delete
/* MS Active Directory controls - not implemented in slapd(8) */
[343] Fix | Delete
#define LDAP_CONTROL_X_EXTENDED_DN "1.2.840.113556.1.4.529"
[344] Fix | Delete
[345] Fix | Delete
/* <draft-wahl-ldap-session> */
[346] Fix | Delete
#define LDAP_CONTROL_X_SESSION_TRACKING "1.3.6.1.4.1.21008.108.63.1"
[347] Fix | Delete
#define LDAP_CONTROL_X_SESSION_TRACKING_RADIUS_ACCT_SESSION_ID \
[348] Fix | Delete
LDAP_CONTROL_X_SESSION_TRACKING ".1"
[349] Fix | Delete
#define LDAP_CONTROL_X_SESSION_TRACKING_RADIUS_ACCT_MULTI_SESSION_ID \
[350] Fix | Delete
LDAP_CONTROL_X_SESSION_TRACKING ".2"
[351] Fix | Delete
#define LDAP_CONTROL_X_SESSION_TRACKING_USERNAME \
[352] Fix | Delete
LDAP_CONTROL_X_SESSION_TRACKING ".3"
[353] Fix | Delete
/* various expired works */
[354] Fix | Delete
[355] Fix | Delete
/* LDAP Duplicated Entry Control Extension *//* not implemented in slapd(8) */
[356] Fix | Delete
#define LDAP_CONTROL_DUPENT_REQUEST "2.16.840.1.113719.1.27.101.1"
[357] Fix | Delete
#define LDAP_CONTROL_DUPENT_RESPONSE "2.16.840.1.113719.1.27.101.2"
[358] Fix | Delete
#define LDAP_CONTROL_DUPENT_ENTRY "2.16.840.1.113719.1.27.101.3"
[359] Fix | Delete
#define LDAP_CONTROL_DUPENT LDAP_CONTROL_DUPENT_REQUEST
[360] Fix | Delete
[361] Fix | Delete
/* LDAP Persistent Search Control *//* not implemented in slapd(8) */
[362] Fix | Delete
#define LDAP_CONTROL_PERSIST_REQUEST "2.16.840.1.113730.3.4.3"
[363] Fix | Delete
#define LDAP_CONTROL_PERSIST_ENTRY_CHANGE_NOTICE "2.16.840.1.113730.3.4.7"
[364] Fix | Delete
#define LDAP_CONTROL_PERSIST_ENTRY_CHANGE_ADD 0x1
[365] Fix | Delete
#define LDAP_CONTROL_PERSIST_ENTRY_CHANGE_DELETE 0x2
[366] Fix | Delete
#define LDAP_CONTROL_PERSIST_ENTRY_CHANGE_MODIFY 0x4
[367] Fix | Delete
#define LDAP_CONTROL_PERSIST_ENTRY_CHANGE_RENAME 0x8
[368] Fix | Delete
[369] Fix | Delete
/* LDAP VLV */
[370] Fix | Delete
#define LDAP_CONTROL_VLVREQUEST "2.16.840.1.113730.3.4.9"
[371] Fix | Delete
#define LDAP_CONTROL_VLVRESPONSE "2.16.840.1.113730.3.4.10"
[372] Fix | Delete
[373] Fix | Delete
/* LDAP Unsolicited Notifications */
[374] Fix | Delete
#define LDAP_NOTICE_OF_DISCONNECTION "1.3.6.1.4.1.1466.20036" /* RFC 4511 */
[375] Fix | Delete
#define LDAP_NOTICE_DISCONNECT LDAP_NOTICE_OF_DISCONNECTION
[376] Fix | Delete
[377] Fix | Delete
/* LDAP Extended Operations */
[378] Fix | Delete
#define LDAP_EXOP_START_TLS "1.3.6.1.4.1.1466.20037" /* RFC 4511 */
[379] Fix | Delete
[380] Fix | Delete
#define LDAP_EXOP_MODIFY_PASSWD "1.3.6.1.4.1.4203.1.11.1" /* RFC 3062 */
[381] Fix | Delete
#define LDAP_TAG_EXOP_MODIFY_PASSWD_ID ((ber_tag_t) 0x80U)
[382] Fix | Delete
#define LDAP_TAG_EXOP_MODIFY_PASSWD_OLD ((ber_tag_t) 0x81U)
[383] Fix | Delete
#define LDAP_TAG_EXOP_MODIFY_PASSWD_NEW ((ber_tag_t) 0x82U)
[384] Fix | Delete
#define LDAP_TAG_EXOP_MODIFY_PASSWD_GEN ((ber_tag_t) 0x80U)
[385] Fix | Delete
[386] Fix | Delete
#define LDAP_EXOP_CANCEL "1.3.6.1.1.8" /* RFC 3909 */
[387] Fix | Delete
#define LDAP_EXOP_X_CANCEL LDAP_EXOP_CANCEL
[388] Fix | Delete
[389] Fix | Delete
#define LDAP_EXOP_REFRESH "1.3.6.1.4.1.1466.101.119.1" /* RFC 2589 */
[390] Fix | Delete
#define LDAP_TAG_EXOP_REFRESH_REQ_DN ((ber_tag_t) 0x80U)
[391] Fix | Delete
#define LDAP_TAG_EXOP_REFRESH_REQ_TTL ((ber_tag_t) 0x81U)
[392] Fix | Delete
#define LDAP_TAG_EXOP_REFRESH_RES_TTL ((ber_tag_t) 0x81U)
[393] Fix | Delete
[394] Fix | Delete
#define LDAP_EXOP_WHO_AM_I "1.3.6.1.4.1.4203.1.11.3" /* RFC 4532 */
[395] Fix | Delete
#define LDAP_EXOP_X_WHO_AM_I LDAP_EXOP_WHO_AM_I
[396] Fix | Delete
[397] Fix | Delete
/* various works in progress */
[398] Fix | Delete
#define LDAP_EXOP_TURN "1.3.6.1.1.19" /* RFC 4531 */
[399] Fix | Delete
#define LDAP_EXOP_X_TURN LDAP_EXOP_TURN
[400] Fix | Delete
[401] Fix | Delete
/* LDAP Distributed Procedures <draft-sermersheim-ldap-distproc> */
[402] Fix | Delete
/* a work in progress */
[403] Fix | Delete
#define LDAP_X_DISTPROC_BASE "1.3.6.1.4.1.4203.666.11.6"
[404] Fix | Delete
#define LDAP_EXOP_X_CHAINEDREQUEST LDAP_X_DISTPROC_BASE ".1"
[405] Fix | Delete
#define LDAP_FEATURE_X_CANCHAINOPS LDAP_X_DISTPROC_BASE ".2"
[406] Fix | Delete
#define LDAP_CONTROL_X_RETURNCONTREF LDAP_X_DISTPROC_BASE ".3"
[407] Fix | Delete
#define LDAP_URLEXT_X_LOCALREFOID LDAP_X_DISTPROC_BASE ".4"
[408] Fix | Delete
#define LDAP_URLEXT_X_REFTYPEOID LDAP_X_DISTPROC_BASE ".5"
[409] Fix | Delete
#define LDAP_URLEXT_X_SEARCHEDSUBTREEOID \
[410] Fix | Delete
LDAP_X_DISTPROC_BASE ".6"
[411] Fix | Delete
#define LDAP_URLEXT_X_FAILEDNAMEOID LDAP_X_DISTPROC_BASE ".7"
[412] Fix | Delete
#define LDAP_URLEXT_X_LOCALREF "x-localReference"
[413] Fix | Delete
#define LDAP_URLEXT_X_REFTYPE "x-referenceType"
[414] Fix | Delete
#define LDAP_URLEXT_X_SEARCHEDSUBTREE "x-searchedSubtree"
[415] Fix | Delete
#define LDAP_URLEXT_X_FAILEDNAME "x-failedName"
[416] Fix | Delete
[417] Fix | Delete
#ifdef LDAP_DEVEL
[418] Fix | Delete
#define LDAP_X_TXN "1.3.6.1.4.1.4203.666.11.7" /* tmp */
[419] Fix | Delete
#define LDAP_EXOP_X_TXN_START LDAP_X_TXN ".1"
[420] Fix | Delete
#define LDAP_CONTROL_X_TXN_SPEC LDAP_X_TXN ".2"
[421] Fix | Delete
#define LDAP_EXOP_X_TXN_END LDAP_X_TXN ".3"
[422] Fix | Delete
#define LDAP_EXOP_X_TXN_ABORTED_NOTICE LDAP_X_TXN ".4"
[423] Fix | Delete
#endif
[424] Fix | Delete
[425] Fix | Delete
/* LDAP Features */
[426] Fix | Delete
#define LDAP_FEATURE_ALL_OP_ATTRS "1.3.6.1.4.1.4203.1.5.1" /* RFC 3673 */
[427] Fix | Delete
#define LDAP_FEATURE_OBJECTCLASS_ATTRS \
[428] Fix | Delete
"1.3.6.1.4.1.4203.1.5.2" /* @objectClass - new number to be assigned */
[429] Fix | Delete
#define LDAP_FEATURE_ABSOLUTE_FILTERS "1.3.6.1.4.1.4203.1.5.3" /* (&) (|) */
[430] Fix | Delete
#define LDAP_FEATURE_LANGUAGE_TAG_OPTIONS "1.3.6.1.4.1.4203.1.5.4"
[431] Fix | Delete
#define LDAP_FEATURE_LANGUAGE_RANGE_OPTIONS "1.3.6.1.4.1.4203.1.5.5"
[432] Fix | Delete
#define LDAP_FEATURE_MODIFY_INCREMENT "1.3.6.1.1.14"
[433] Fix | Delete
[434] Fix | Delete
/* LDAP Experimental (works in progress) Features */
[435] Fix | Delete
#define LDAP_FEATURE_SUBORDINATE_SCOPE \
[436] Fix | Delete
"1.3.6.1.4.1.4203.666.8.1" /* "children" */
[437] Fix | Delete
#define LDAP_FEATURE_CHILDREN_SCOPE LDAP_FEATURE_SUBORDINATE_SCOPE
[438] Fix | Delete
[439] Fix | Delete
/*
[440] Fix | Delete
* specific LDAP instantiations of BER types we know about
[441] Fix | Delete
*/
[442] Fix | Delete
[443] Fix | Delete
/* Overview of LBER tag construction
[444] Fix | Delete
*
[445] Fix | Delete
* Bits
[446] Fix | Delete
* ______
[447] Fix | Delete
* 8 7 | CLASS
[448] Fix | Delete
* 0 0 = UNIVERSAL
[449] Fix | Delete
* 0 1 = APPLICATION
[450] Fix | Delete
* 1 0 = CONTEXT-SPECIFIC
[451] Fix | Delete
* 1 1 = PRIVATE
[452] Fix | Delete
* _____
[453] Fix | Delete
* | 6 | DATA-TYPE
[454] Fix | Delete
* 0 = PRIMITIVE
[455] Fix | Delete
* 1 = CONSTRUCTED
[456] Fix | Delete
* ___________
[457] Fix | Delete
* | 5 ... 1 | TAG-NUMBER
[458] Fix | Delete
*/
[459] Fix | Delete
[460] Fix | Delete
/* general stuff */
[461] Fix | Delete
#define LDAP_TAG_MESSAGE ((ber_tag_t) 0x30U) /* constructed + 16 */
[462] Fix | Delete
#define LDAP_TAG_MSGID ((ber_tag_t) 0x02U) /* integer */
[463] Fix | Delete
[464] Fix | Delete
#define LDAP_TAG_LDAPDN ((ber_tag_t) 0x04U) /* octet string */
[465] Fix | Delete
#define LDAP_TAG_LDAPCRED ((ber_tag_t) 0x04U) /* octet string */
[466] Fix | Delete
[467] Fix | Delete
#define LDAP_TAG_CONTROLS ((ber_tag_t) 0xa0U) /* context specific + constructed + 0 */
[468] Fix | Delete
#define LDAP_TAG_REFERRAL ((ber_tag_t) 0xa3U) /* context specific + constructed + 3 */
[469] Fix | Delete
[470] Fix | Delete
#define LDAP_TAG_NEWSUPERIOR ((ber_tag_t) 0x80U) /* context-specific + primitive + 0 */
[471] Fix | Delete
[472] Fix | Delete
#define LDAP_TAG_EXOP_REQ_OID ((ber_tag_t) 0x80U) /* context specific + primitive */
[473] Fix | Delete
#define LDAP_TAG_EXOP_REQ_VALUE ((ber_tag_t) 0x81U) /* context specific + primitive */
[474] Fix | Delete
#define LDAP_TAG_EXOP_RES_OID ((ber_tag_t) 0x8aU) /* context specific + primitive */
[475] Fix | Delete
#define LDAP_TAG_EXOP_RES_VALUE ((ber_tag_t) 0x8bU) /* context specific + primitive */
[476] Fix | Delete
[477] Fix | Delete
#define LDAP_TAG_IM_RES_OID ((ber_tag_t) 0x80U) /* context specific + primitive */
[478] Fix | Delete
#define LDAP_TAG_IM_RES_VALUE ((ber_tag_t) 0x81U) /* context specific + primitive */
[479] Fix | Delete
[480] Fix | Delete
#define LDAP_TAG_SASL_RES_CREDS ((ber_tag_t) 0x87U) /* context specific + primitive */
[481] Fix | Delete
[482] Fix | Delete
/* LDAP Request Messages */
[483] Fix | Delete
#define LDAP_REQ_BIND ((ber_tag_t) 0x60U) /* application + constructed */
[484] Fix | Delete
#define LDAP_REQ_UNBIND ((ber_tag_t) 0x42U) /* application + primitive */
[485] Fix | Delete
#define LDAP_REQ_SEARCH ((ber_tag_t) 0x63U) /* application + constructed */
[486] Fix | Delete
#define LDAP_REQ_MODIFY ((ber_tag_t) 0x66U) /* application + constructed */
[487] Fix | Delete
#define LDAP_REQ_ADD ((ber_tag_t) 0x68U) /* application + constructed */
[488] Fix | Delete
#define LDAP_REQ_DELETE ((ber_tag_t) 0x4aU) /* application + primitive */
[489] Fix | Delete
#define LDAP_REQ_MODDN ((ber_tag_t) 0x6cU) /* application + constructed */
[490] Fix | Delete
#define LDAP_REQ_MODRDN LDAP_REQ_MODDN
[491] Fix | Delete
#define LDAP_REQ_RENAME LDAP_REQ_MODDN
[492] Fix | Delete
#define LDAP_REQ_COMPARE ((ber_tag_t) 0x6eU) /* application + constructed */
[493] Fix | Delete
#define LDAP_REQ_ABANDON ((ber_tag_t) 0x50U) /* application + primitive */
[494] Fix | Delete
#define LDAP_REQ_EXTENDED ((ber_tag_t) 0x77U) /* application + constructed */
[495] Fix | Delete
[496] Fix | Delete
/* LDAP Response Messages */
[497] Fix | Delete
#define LDAP_RES_BIND ((ber_tag_t) 0x61U) /* application + constructed */
[498] Fix | Delete
#define LDAP_RES_SEARCH_ENTRY ((ber_tag_t) 0x64U) /* application + constructed */
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function