C# Class Novell.Directory.Ldap.Extensions.AddReplicaRequest

Adds a replica to the specified directory server. To add a replica to a particular server, you must create an instance of this class and then call the extendedOperation method with this object as the required LdapExtendedOperation parameter. The addReplicaRequest extension uses the following OID: 2.16.840.1.113719.1.27.100.7 The requestValue has the following format: requestValue ::= flags INTEGER replicaType INTEGER serverName LdapDN dn LdapDN
Inheritance: Novell.Directory.Ldap.LdapExtendedOperation
Show file Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
AddReplicaRequest ( System dn, System serverDN, int replicaType, int flags ) : System

Constructs a new extended operation object for adding a replica to the specified server.

Method Details

AddReplicaRequest() public method

Constructs a new extended operation object for adding a replica to the specified server.
LdapException A general exception which includes an error message /// and an Ldap error code. /// ///
public AddReplicaRequest ( System dn, System serverDN, int replicaType, int flags ) : System
dn System The distinguished name of the replica's partition root. /// ///
serverDN System The server on which the new replica will be added. /// ///
replicaType int The type of replica to add. The replica /// types are defined in the ReplicationConstants class. /// ///
flags int Specifies whether all servers in the replica ring must be up /// before proceeding. When set to zero, the status of the servers is not /// checked. When set to Ldap_ENSURE_SERVERS_UP, all servers must be up for the /// operation to proceed. /// ///
return System