Ejemplo n.º 1
0
 public ADResponse(string dn, DirectoryControl[] controls, ResultCode result, string message, Uri[] referral)
 {
     this._result   = ResultCode.OperationsError | ResultCode.ProtocolError | ResultCode.TimeLimitExceeded | ResultCode.SizeLimitExceeded | ResultCode.CompareFalse | ResultCode.CompareTrue | ResultCode.AuthMethodNotSupported | ResultCode.StrongAuthRequired | ResultCode.ReferralV2 | ResultCode.Referral | ResultCode.AdminLimitExceeded | ResultCode.UnavailableCriticalExtension | ResultCode.ConfidentialityRequired | ResultCode.SaslBindInProgress | ResultCode.NoSuchAttribute | ResultCode.UndefinedAttributeType | ResultCode.InappropriateMatching | ResultCode.ConstraintViolation | ResultCode.AttributeOrValueExists | ResultCode.InvalidAttributeSyntax | ResultCode.NoSuchObject | ResultCode.AliasProblem | ResultCode.InvalidDNSyntax | ResultCode.AliasDereferencingProblem | ResultCode.InappropriateAuthentication | ResultCode.InsufficientAccessRights | ResultCode.Busy | ResultCode.Unavailable | ResultCode.UnwillingToPerform | ResultCode.LoopDetect | ResultCode.SortControlMissing | ResultCode.OffsetRangeError | ResultCode.NamingViolation | ResultCode.ObjectClassViolation | ResultCode.NotAllowedOnNonLeaf | ResultCode.NotAllowedOnRdn | ResultCode.EntryAlreadyExists | ResultCode.ObjectClassModificationsProhibited | ResultCode.ResultsTooLarge | ResultCode.AffectsMultipleDsas | ResultCode.VirtualListViewError | ResultCode.Other;
     this._dn       = dn;
     this._controls = controls;
     ADResponse.TransformControls(this._controls);
     this._result   = result;
     this._message  = message;
     this._referral = referral;
 }
Ejemplo n.º 2
0
		private void CheckAndThrowReferralException(ADResponse response)
		{
			if (response.ResultCode != ResultCode.Referral)
			{
				return;
			}
			else
			{
				throw new ADReferralException(response.ErrorMessage, 0x202b, response.Referral);
			}
		}
 private void CheckAndThrowReferralException(ADResponse response)
 {
     if (response.ResultCode != ResultCode.Referral)
     {
         return;
     }
     else
     {
         throw new ADReferralException(response.ErrorMessage, 0x202b, response.Referral);
     }
 }