Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NamingContextConstants.cs « Novell.Directory.Ldap.Extensions « Novell.Directory.Ldap « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3a92ac5dfe2979c6fa66181848173d520f81ad07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/******************************************************************************
* The MIT License
* Copyright (c) 2003 Novell Inc.  www.novell.com
* 
* Permission is hereby granted, free of charge, to any person obtaining  a copy
* of this software and associated documentation files (the Software), to deal
* in the Software without restriction, including  without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
* copies of the Software, and to  permit persons to whom the Software is 
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in 
* all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*******************************************************************************/
//
// Novell.Directory.Ldap.Extensions.NamingContextConstants.cs
//
// Author:
//   Sunil Kumar (Sunilk@novell.com)
//
// (C) 2003 Novell, Inc (http://www.novell.com)
//

using System;

namespace Novell.Directory.Ldap.Extensions
{
	
	/*
	* public class NamingContextConstants
	*/
	
	/// <summary> Contains a collection of constants used by the Novell Ldap extensions.</summary>
	public class NamingContextConstants
	{
		
		/// <summary> A constant for the createNamingContextRequest OID.</summary>
		public const System.String CREATE_NAMING_CONTEXT_REQ = "2.16.840.1.113719.1.27.100.3";
		
		/// <summary> A constant for the createNamingContextResponse OID.</summary>
		public const System.String CREATE_NAMING_CONTEXT_RES = "2.16.840.1.113719.1.27.100.4";
		
		/// <summary> A constant for the mergeNamingContextRequest OID.</summary>
		public const System.String MERGE_NAMING_CONTEXT_REQ = "2.16.840.1.113719.1.27.100.5";
		
		/// <summary> A constant for the mergeNamingContextResponse OID.</summary>
		public const System.String MERGE_NAMING_CONTEXT_RES = "2.16.840.1.113719.1.27.100.6";
		
		/// <summary> A constant for the addReplicaRequest OID.</summary>
		public const System.String ADD_REPLICA_REQ = "2.16.840.1.113719.1.27.100.7";
		
		/// <summary> A constant for the addReplicaResponse OID.</summary>
		public const System.String ADD_REPLICA_RES = "2.16.840.1.113719.1.27.100.8";
		
		/// <summary> A constant for the refreshServerRequest OID.</summary>
		public const System.String REFRESH_SERVER_REQ = "2.16.840.1.113719.1.27.100.9";
		
		/// <summary> A constant for the refreshServerResponse OID.</summary>
		public const System.String REFRESH_SERVER_RES = "2.16.840.1.113719.1.27.100.10";
		
		/// <summary> A constant for the removeReplicaRequest OID.</summary>
		public const System.String DELETE_REPLICA_REQ = "2.16.840.1.113719.1.27.100.11";
		
		/// <summary> A constant for the removeReplicaResponse OID.</summary>
		public const System.String DELETE_REPLICA_RES = "2.16.840.1.113719.1.27.100.12";
		
		/// <summary> A constant for the namingContextEntryCountRequest OID.</summary>
		public const System.String NAMING_CONTEXT_COUNT_REQ = "2.16.840.1.113719.1.27.100.13";
		
		/// <summary> A constant for the namingContextEntryCountResponse OID.</summary>
		public const System.String NAMING_CONTEXT_COUNT_RES = "2.16.840.1.113719.1.27.100.14";
		
		/// <summary> A constant for the changeReplicaTypeRequest OID.</summary>
		public const System.String CHANGE_REPLICA_TYPE_REQ = "2.16.840.1.113719.1.27.100.15";
		
		/// <summary> A constant for the changeReplicaTypeResponse OID.</summary>
		public const System.String CHANGE_REPLICA_TYPE_RES = "2.16.840.1.113719.1.27.100.16";
		
		/// <summary> A constant for the getReplicaInfoRequest OID.</summary>
		public const System.String GET_REPLICA_INFO_REQ = "2.16.840.1.113719.1.27.100.17";
		
		/// <summary> A constant for the getReplicaInfoResponse OID.</summary>
		public const System.String GET_REPLICA_INFO_RES = "2.16.840.1.113719.1.27.100.18";
		
		/// <summary> A constant for the listReplicaRequest OID.</summary>
		public const System.String LIST_REPLICAS_REQ = "2.16.840.1.113719.1.27.100.19";
		
		/// <summary> A constant for the listReplicaResponse OID.</summary>
		public const System.String LIST_REPLICAS_RES = "2.16.840.1.113719.1.27.100.20";
		
		/// <summary> A constant for the receiveAllUpdatesRequest OID.</summary>
		public const System.String RECEIVE_ALL_UPDATES_REQ = "2.16.840.1.113719.1.27.100.21";
		
		/// <summary> A constant for the receiveAllUpdatesResponse OID.</summary>
		public const System.String RECEIVE_ALL_UPDATES_RES = "2.16.840.1.113719.1.27.100.22";
		
		/// <summary> A constant for the sendAllUpdatesRequest OID.</summary>
		public const System.String SEND_ALL_UPDATES_REQ = "2.16.840.1.113719.1.27.100.23";
		
		/// <summary> A constant for the sendAllUpdatesResponse OID.</summary>
		public const System.String SEND_ALL_UPDATES_RES = "2.16.840.1.113719.1.27.100.24";
		
		/// <summary> A constant for the requestNamingContextSyncRequest OID.</summary>
		public const System.String NAMING_CONTEXT_SYNC_REQ = "2.16.840.1.113719.1.27.100.25";
		
		/// <summary> A constant for the requestNamingContextSyncResponse OID.</summary>
		public const System.String NAMING_CONTEXT_SYNC_RES = "2.16.840.1.113719.1.27.100.26";
		
		/// <summary> A constant for the requestSchemaSyncRequest OID.</summary>
		public const System.String SCHEMA_SYNC_REQ = "2.16.840.1.113719.1.27.100.27";
		
		/// <summary> A constant for the requestSchemaSyncResponse OID.</summary>
		public const System.String SCHEMA_SYNC_RES = "2.16.840.1.113719.1.27.100.28";
		
		/// <summary> A constant for the abortNamingContextOperationRequest OID.</summary>
		public const System.String ABORT_NAMING_CONTEXT_OP_REQ = "2.16.840.1.113719.1.27.100.29";
		
		/// <summary> A constant for the abortNamingContextOperationResponse OID.</summary>
		public const System.String ABORT_NAMING_CONTEXT_OP_RES = "2.16.840.1.113719.1.27.100.30";
		
		/// <summary> A constant for the getContextIdentityNameRequest OID.</summary>
		public const System.String GET_IDENTITY_NAME_REQ = "2.16.840.1.113719.1.27.100.31";
		
		/// <summary> A constant for the getContextIdentityNameResponse OID.</summary>
		public const System.String GET_IDENTITY_NAME_RES = "2.16.840.1.113719.1.27.100.32";
		
		/// <summary> A constant for the getEffectivePrivilegesRequest OID.</summary>
		public const System.String GET_EFFECTIVE_PRIVILEGES_REQ = "2.16.840.1.113719.1.27.100.33";
		
		/// <summary> A constant for the getEffectivePrivilegesResponse OID.</summary>
		public const System.String GET_EFFECTIVE_PRIVILEGES_RES = "2.16.840.1.113719.1.27.100.34";
		
		/// <summary> A constant for the setReplicationFilterRequest OID.</summary>
		public const System.String SET_REPLICATION_FILTER_REQ = "2.16.840.1.113719.1.27.100.35";
		
		/// <summary> A constant for the setReplicationFilterResponse OID.</summary>
		public const System.String SET_REPLICATION_FILTER_RES = "2.16.840.1.113719.1.27.100.36";
		
		/// <summary> A constant for the getReplicationFilterRequest OID.</summary>
		public const System.String GET_REPLICATION_FILTER_REQ = "2.16.840.1.113719.1.27.100.37";
		
		/// <summary> A constant for the getReplicationFilterResponse OID.</summary>
		public const System.String GET_REPLICATION_FILTER_RES = "2.16.840.1.113719.1.27.100.38";
		
		/// <summary> A constant for the createOrphanNamingContextRequest OID.</summary>
		public const System.String CREATE_ORPHAN_NAMING_CONTEXT_REQ = "2.16.840.1.113719.1.27.100.39";
		
		/// <summary> A constant for the createOrphanNamingContextResponse OID.</summary>
		public const System.String CREATE_ORPHAN_NAMING_CONTEXT_RES = "2.16.840.1.113719.1.27.100.40";
		
		/// <summary> A constant for the removeOrphanNamingContextRequest OID.</summary>
		public const System.String REMOVE_ORPHAN_NAMING_CONTEXT_REQ = "2.16.840.1.113719.1.27.100.41";
		
		/// <summary> A constant for the removeOrphanNamingContextResponse OID.</summary>
		public const System.String REMOVE_ORPHAN_NAMING_CONTEXT_RES = "2.16.840.1.113719.1.27.100.42";
		
		/// <summary> A constant for the triggerBackLinkerRequest OID.</summary>
		public const System.String TRIGGER_BKLINKER_REQ = "2.16.840.1.113719.1.27.100.43";
		
		/// <summary> A constant for the triggerBackLinkerResponse OID.</summary>
		public const System.String TRIGGER_BKLINKER_RES = "2.16.840.1.113719.1.27.100.44";
		
		/// <summary> A constant for the triggerJanitorRequest OID.</summary>
		public const System.String TRIGGER_JANITOR_REQ = "2.16.840.1.113719.1.27.100.47";
		
		/// <summary> A constant for the triggerJanitorResponse OID.</summary>
		public const System.String TRIGGER_JANITOR_RES = "2.16.840.1.113719.1.27.100.48";
		
		/// <summary> A constant for the triggerLimberRequest OID.</summary>
		public const System.String TRIGGER_LIMBER_REQ = "2.16.840.1.113719.1.27.100.49";
		
		/// <summary> A constant for the triggerLimberResponse OID.</summary>
		public const System.String TRIGGER_LIMBER_RES = "2.16.840.1.113719.1.27.100.50";
		
		/// <summary> A constant for the triggerSkulkerRequest OID.</summary>
		public const System.String TRIGGER_SKULKER_REQ = "2.16.840.1.113719.1.27.100.51";
		
		/// <summary> A constant for the triggerSkulkerResponse OID.</summary>
		public const System.String TRIGGER_SKULKER_RES = "2.16.840.1.113719.1.27.100.52";
		
		/// <summary> A constant for the triggerSchemaSyncRequest OID.</summary>
		public const System.String TRIGGER_SCHEMA_SYNC_REQ = "2.16.840.1.113719.1.27.100.53";
		
		/// <summary> A constant for the triggerSchemaSyncResponse OID.</summary>
		public const System.String TRIGGER_SCHEMA_SYNC_RES = "2.16.840.1.113719.1.27.100.54";
		
		/// <summary> A constant for the triggerPartitionPurgeRequest OID.</summary>
		public const System.String TRIGGER_PART_PURGE_REQ = "2.16.840.1.113719.1.27.100.55";
		
		/// <summary> A constant for the triggerPartitionPurgeResponse OID.</summary>
		public const System.String TRIGGER_PART_PURGE_RES = "2.16.840.1.113719.1.27.100.56";
		
		
		/// <summary> A constant that specifies that all servers in a replica ring must be
		/// running for a naming context operation to proceed.
		/// </summary>
		public const int Ldap_ENSURE_SERVERS_UP = 1;
		
		
		/// <summary> Identifies this replica as the master replica of the naming context.
		/// 
		/// On this type of replica, entries can be modified, and naming context
		/// operations can be performed.
		/// </summary>
		public const int Ldap_RT_MASTER = 0;
		
		/// <summary> Identifies this replica as a secondary replica of the naming context.
		/// 
		/// On this type of replica, read and write operations can be performed,
		/// and entries can be modified.
		/// </summary>
		public const int Ldap_RT_SECONDARY = 1;
		
		/// <summary> Identifies this replica as a read-only replica of the naming context.
		/// 
		/// Only Novell eDirectory synchronization processes can modifie
		/// entries on this replica.
		/// </summary>
		public const int Ldap_RT_READONLY = 2;
		
		/// <summary> Identifies this replica as a subordinate reference replica of the
		/// naming context.
		/// 
		/// Novell eDirectory automatically adds these replicas to a server
		/// when the server does not contain replicas of all child naming contexts.
		/// Only eDirectory can modify information on these types of replicas. 
		/// </summary>
		public const int Ldap_RT_SUBREF = 3;
		
		/// <summary> Identifies this replica as a read/write replica of the naming context,
		/// but the replica contains sparse data.
		/// 
		/// The replica has been configured to contain only specified object types
		/// and attributes. On this type of replica, only the attributes and objects
		/// contained in the sparse data can be modified.
		/// </summary>
		public const int Ldap_RT_SPARSE_WRITE = 4;
		
		/// <summary> Identifies this replica as a read-only replica of the naming context,
		/// but the replica contains sparse data.
		/// 
		/// The replica has been configured to contain only specified object types
		/// and attributes. On this type of replica, only Novell eDirectory
		/// synchronization processes can modify the sparse data.
		/// </summary>
		public const int Ldap_RT_SPARSE_READ = 5;
		
		//Replica States
		
		/// <summary> Indicates that the replica is fully functioning and capable of responding
		/// to requests.
		/// </summary>
		public const int Ldap_RS_ON = 0;
		
		/// <summary> Indicates that a new replica has been added but has not received a full
		/// download of information from the replica ring.
		/// </summary>
		public const int Ldap_RS_NEW_REPLICA = 1;
		
		/// <summary> Indicates that the replica is being deleted and that the request has
		/// been received.
		/// </summary>
		public const int Ldap_RS_DYING_REPLICA = 2;
		
		/// <summary> Indicates that the replica is locked. The move operation uses this state
		/// to lock the parent naming context of the child naming context that is moving.
		/// </summary>
		public const int Ldap_RS_LOCKED = 3;
		
		/// <summary> Indicates that a new replica has finished receiving its download from the
		/// master replica and is now receiving synchronization updates from other
		/// replicas.
		/// </summary>
		public const int Ldap_RS_TRANSITION_ON = 6;
		
		
		/// <summary> Indicates that the dying replica needs to synchronize with another replica
		/// before being converted either to an external reference, if a root replica,
		/// or to a subordinate reference, if a non-root replica.
		/// </summary>
		public const int Ldap_RS_DEAD_REPLICA = 7;
		
		/// <summary> Indicates that the subordinate references of the new replica are being
		/// added.
		/// </summary>
		public const int Ldap_RS_BEGIN_ADD = 8;
		
		/// <summary> Indicates that a naming context is receiving a new master replica.
		/// 
		/// The replica that will be the new master replica is set to this state.
		/// </summary>
		public const int Ldap_RS_MASTER_START = 11;
		
		/// <summary> Indicates that a naming context has a new master replica.
		/// 
		/// When the new master is set to this state, Novell eDirectory knows
		/// that the replica is now the master and changes its replica type to
		/// master and the old master to read/write.
		/// </summary>
		public const int Ldap_RS_MASTER_DONE = 12;
		
		/// <summary> Indicates that the naming context is going to split into two naming contexts.
		/// 
		/// In this state, other replicas of the naming context are informed of the
		/// pending split.
		/// </summary>
		public const int Ldap_RS_SS_0 = 48; // Replica splitting 0
		
		/// <summary> Indicates that that the split naming context operation has started.
		/// 
		/// When the split is finished, the state will change to RS_ON.
		/// </summary>
		public const int Ldap_RS_SS_1 = 49; // Replica splitting 1
		
		/// <summary> Indicates that that two naming contexts are in the process of joining
		/// into one naming context.
		/// 
		/// In this state, the replicas that are affected are informed of the join
		/// operation. The master replica of the parent and child naming contexts are
		/// first set to this state and then all the replicas of the parent and child.
		/// New replicas are added where needed.
		/// </summary>
		public const int Ldap_RS_JS_0 = 64; // Replica joining 0
		
		/// <summary> Indicates that that two naming contexts are in the process of joining
		/// into one naming context.
		/// 
		/// This state indicates that the join operation is waiting for the new
		/// replicas to synchronize and move to the RS_ON state.
		/// </summary>
		public const int Ldap_RS_JS_1 = 65; // Replica joining 1
		
		/// <summary> Indicates that that two naming contexts are in the process of joining
		/// into one naming context.
		/// 
		/// This state indicates that all the new replicas are in the RS_ON state
		/// and that the rest of the work can be completed.
		/// </summary>
		public const int Ldap_RS_JS_2 = 66; // Replica joining 2
		
		
		// Values for flags used in the replica info class structure
		
		/// <summary> Indicates that the replica is involved with a partition operation,
		/// for example, merging a tree or moving a subtree.
		/// </summary>
		public const int Ldap_DS_FLAG_BUSY = 0x0001;
		
		/// <summary> Indicates that this naming context is on the DNS federation boundary.
		/// This flag is only set on DNS trees.
		/// </summary>
		public const int Ldap_DS_FLAG_BOUNDARY = 0x0002;
		
		
		public NamingContextConstants()
		{
		}
	}
}