예제 #1
0
        public void Rename(string newName)
        {
            this.Init();
            DebugLogger.WriteLine("ADActiveObject", string.Concat("Rename called for ", this._adObject.DistinguishedName, ". newName is ", newName));
            ADModifyDNRequest aDModifyDNRequest = new ADModifyDNRequest(this._adObject.DistinguishedName, null, newName);

            this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
            DebugLogger.WriteLine("ADActiveObject", string.Concat("Rename succeeded for ", this._adObject.DistinguishedName));
        }
예제 #2
0
        public void Move(string newParentDN, string newName)
        {
            this.Init();
            string[] distinguishedName = new string[6];
            distinguishedName[0] = "Move called for ";
            distinguishedName[1] = this._adObject.DistinguishedName;
            distinguishedName[2] = ". newParentDN=";
            distinguishedName[3] = newParentDN;
            distinguishedName[4] = " newName=";
            distinguishedName[5] = newName;
            DebugLogger.WriteLine("ADActiveObject", string.Concat(distinguishedName));
            ADModifyDNRequest aDModifyDNRequest = new ADModifyDNRequest(this._adObject.DistinguishedName, newParentDN, newName);

            this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
            DebugLogger.WriteLine("ADActiveObject", string.Concat("Move succeeded for ", this._adObject.DistinguishedName));
        }
예제 #3
0
        public void CrossDomainMove(string newParentDN, string newName, string targetDCName)
        {
            this.Init();
            DebugLogger.WriteLine("ADActiveObject", string.Concat("CrossDomainMove called for ", this._adObject.DistinguishedName));
            string[] strArrays = new string[6];
            strArrays[0] = "CrossDomainMove: newParentDN=";
            strArrays[1] = newParentDN;
            strArrays[2] = " newName=";
            strArrays[3] = newName;
            strArrays[4] = " targetDCName";
            strArrays[5] = targetDCName;
            DebugLogger.WriteLine("ADActiveObject", string.Concat(strArrays));
            ADModifyDNRequest      aDModifyDNRequest      = new ADModifyDNRequest(this._adObject.DistinguishedName, newParentDN, newName);
            CrossDomainMoveControl crossDomainMoveControl = new CrossDomainMoveControl(targetDCName);

            aDModifyDNRequest.Controls.Add(crossDomainMoveControl);
            this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
            DebugLogger.WriteLine("ADActiveObject", string.Concat("CrossDomainMove succeeded for ", this._adObject.DistinguishedName));
        }
예제 #4
0
		ADModifyDNResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.ModifyDN(ADSessionHandle handle, ADModifyDNRequest request)
		{
			ADModifyDNResponse aDModifyDNResponse = null;
			AdwsConnection internalHandle = this.GetInternalHandle(handle);
			if (internalHandle != null)
			{
				aDModifyDNResponse = internalHandle.ModifyDN(request);
				this.CheckAndThrowReferralException(aDModifyDNResponse);
				ADStoreAccess.ThrowExceptionForResultCodeError(aDModifyDNResponse.ResultCode, aDModifyDNResponse.ErrorMessage, null);
			}
			return aDModifyDNResponse;
		}
        ADModifyDNResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.ModifyDN(ADSessionHandle handle, ADModifyDNRequest request)
        {
            ADModifyDNResponse           aDModifyDNResponse = null;
            ADDirectoryServiceConnection internalHandle     = this.GetInternalHandle(handle);

            if (internalHandle != null)
            {
                aDModifyDNResponse = internalHandle.ModifyDN(request);
                this.CheckAndThrowReferralException(aDModifyDNResponse);
                ADStoreAccess.ThrowExceptionForResultCodeError(aDModifyDNResponse.ResultCode, aDModifyDNResponse.ErrorMessage, null);
            }
            return(aDModifyDNResponse);
        }
 public ADModifyDNResponse ModifyDN(ADSessionHandle handle, ADModifyDNRequest request)
 {
     throw new NotImplementedException();
 }
예제 #7
0
		public void Rename(string newName)
		{
			this.Init();
			DebugLogger.WriteLine("ADActiveObject", string.Concat("Rename called for ", this._adObject.DistinguishedName, ". newName is ", newName));
			ADModifyDNRequest aDModifyDNRequest = new ADModifyDNRequest(this._adObject.DistinguishedName, null, newName);
			this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
			DebugLogger.WriteLine("ADActiveObject", string.Concat("Rename succeeded for ", this._adObject.DistinguishedName));
		}
예제 #8
0
		public void Move(string newParentDN, string newName)
		{
			this.Init();
			string[] distinguishedName = new string[6];
			distinguishedName[0] = "Move called for ";
			distinguishedName[1] = this._adObject.DistinguishedName;
			distinguishedName[2] = ". newParentDN=";
			distinguishedName[3] = newParentDN;
			distinguishedName[4] = " newName=";
			distinguishedName[5] = newName;
			DebugLogger.WriteLine("ADActiveObject", string.Concat(distinguishedName));
			ADModifyDNRequest aDModifyDNRequest = new ADModifyDNRequest(this._adObject.DistinguishedName, newParentDN, newName);
			this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
			DebugLogger.WriteLine("ADActiveObject", string.Concat("Move succeeded for ", this._adObject.DistinguishedName));
		}
예제 #9
0
		public void CrossDomainMove(string newParentDN, string newName, string targetDCName)
		{
			this.Init();
			DebugLogger.WriteLine("ADActiveObject", string.Concat("CrossDomainMove called for ", this._adObject.DistinguishedName));
			string[] strArrays = new string[6];
			strArrays[0] = "CrossDomainMove: newParentDN=";
			strArrays[1] = newParentDN;
			strArrays[2] = " newName=";
			strArrays[3] = newName;
			strArrays[4] = " targetDCName";
			strArrays[5] = targetDCName;
			DebugLogger.WriteLine("ADActiveObject", string.Concat(strArrays));
			ADModifyDNRequest aDModifyDNRequest = new ADModifyDNRequest(this._adObject.DistinguishedName, newParentDN, newName);
			CrossDomainMoveControl crossDomainMoveControl = new CrossDomainMoveControl(targetDCName);
			aDModifyDNRequest.Controls.Add(crossDomainMoveControl);
			this._syncOps.ModifyDN(this._sessionHandle, aDModifyDNRequest);
			DebugLogger.WriteLine("ADActiveObject", string.Concat("CrossDomainMove succeeded for ", this._adObject.DistinguishedName));
		}
예제 #10
0
		public ADModifyDNResponse ModifyDN (ADSessionHandle handle, ADModifyDNRequest request)
		{
			throw new NotImplementedException ();
		}