Represents an Ldap DN.
 LdapDN ::= LdapString 
Inheritance: RfcLdapString
        //*************************************************************************
        // Constructors for BindRequest
        //*************************************************************************

        /// <summary> </summary>
        public RfcBindRequest(Asn1Integer version, RfcLdapDN name, RfcAuthenticationChoice auth) : base(3)
        {
            add(version);
            add(name);
            add(auth);
            return;
        }
Esempio n. 2
0
 //*************************************************************************
 // Constructor for ModifyRequest
 //*************************************************************************
 /// <summary> </summary>
 public RfcModifyRequest(RfcLdapDN object_Renamed, Asn1SequenceOf modification)
     : base(2)
 {
     add(object_Renamed);
     add(modification);
     return ;
 }
Esempio n. 3
0
        //*************************************************************************
        // Constructor for ModifyRequest
        //*************************************************************************

        /// <summary> </summary>
        public RfcModifyRequest(RfcLdapDN object_Renamed, Asn1SequenceOf modification)
            : base(2)
        {
            add(object_Renamed);
            add(modification);
            return;
        }
Esempio n. 4
0
 //*************************************************************************
 // Constructors for AddRequest
 //*************************************************************************
 /// <summary> Constructs an RFCAddRequest
 /// 
 /// </summary>
 /// <param name="entry">the entry
 /// 
 /// </param>
 /// <param name="attributes">the Attributes making up the Entry
 /// </param>
 public RfcAddRequest(RfcLdapDN entry, RfcAttributeList attributes)
     : base(2)
 {
     add(entry);
     add(attributes);
     return ;
 }
Esempio n. 5
0
 //*************************************************************************
 // Constructors for BindRequest
 //*************************************************************************
 /// <summary> </summary>
 public RfcBindRequest(Asn1Integer version, RfcLdapDN name, RfcAuthenticationChoice auth)
     : base(3)
 {
     add(version);
     add(name);
     add(auth);
     return ;
 }
Esempio n. 6
0
        //*************************************************************************
        // Constructor for CompareRequest
        //*************************************************************************

        /// <summary> </summary>
        public RfcCompareRequest(RfcLdapDN entry, RfcAttributeValueAssertion ava) : base(2)
        {
            add(entry);
            add(ava);
            if (ava.AssertionValue == null)
            {
                throw new ArgumentException("compare: Attribute must have an assertion value");
            }
        }
		/// <summary> </summary>
		public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn, RfcLdapSuperDN newSuperior):base(4)
		{
			add(entry);
			add(newrdn);
			add(deleteoldrdn);
			if (newSuperior != null) {
				add(newSuperior);
			}
		}
Esempio n. 8
0
		//*************************************************************************
		// Constructor for CompareRequest
		//*************************************************************************
		
		/// <summary> </summary>
		public RfcCompareRequest(RfcLdapDN entry, RfcAttributeValueAssertion ava):base(2)
		{
			add(entry);
			add(ava);
			if (ava.AssertionValue == null)
			{
				throw new System.ArgumentException("compare: Attribute must have an assertion value");
			}
			return ;
		}
 /// <summary> Constructs an RfcLdapResult from parameters
 ///
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 ///
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 ///
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 ///
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcLdapResult(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral) : base(4)
 {
     add(resultCode);
     add(matchedDN);
     add(errorMessage);
     if (referral != null)
     {
         add(referral);
     }
     return;
 }
Esempio n. 10
0
		/// <summary> </summary>
		public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn, RfcLdapSuperDN newSuperior):base(4)
		{
			add(entry);
			add(newrdn);
			add(deleteoldrdn);
			if (newSuperior != null)
			{
				newSuperior.setIdentifier(new Asn1Identifier(Asn1Identifier.CONTEXT,false,0));
				add(newSuperior);
			}
		}
 /// <summary> </summary>
 public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn, RfcLdapSuperDN newSuperior) : base(4)
 {
     add(entry);
     add(newrdn);
     add(deleteoldrdn);
     if (newSuperior != null)
     {
         newSuperior.setIdentifier(new Asn1Identifier(Asn1Identifier.CONTEXT, false, 0));
         add(newSuperior);
     }
 }
Esempio n. 12
0
		//*************************************************************************
		// Constructors for SearchRequest
		//*************************************************************************
		
		/*
		*
		*/
		public RfcSearchRequest(RfcLdapDN baseObject, Asn1Enumerated scope, Asn1Enumerated derefAliases, Asn1Integer sizeLimit, Asn1Integer timeLimit, Asn1Boolean typesOnly, RfcFilter filter, RfcAttributeDescriptionList attributes):base(8)
		{
			add(baseObject);
			add(scope);
			add(derefAliases);
			add(sizeLimit);
			add(timeLimit);
			add(typesOnly);
			add(filter);
			add(attributes);
			return ;
		}
        //*************************************************************************
        // Constructors for SearchRequest
        //*************************************************************************

        /*
         *
         */
        public RfcSearchRequest(RfcLdapDN baseObject, Asn1Enumerated scope, Asn1Enumerated derefAliases, Asn1Integer sizeLimit, Asn1Integer timeLimit, Asn1Boolean typesOnly, RfcFilter filter, RfcAttributeDescriptionList attributes) : base(8)
        {
            add(baseObject);
            add(scope);
            add(derefAliases);
            add(sizeLimit);
            add(timeLimit);
            add(typesOnly);
            add(filter);
            add(attributes);
            return;
        }
Esempio n. 14
0
        //*************************************************************************
        // Constructors for AddRequest
        //*************************************************************************

        /// <summary> Constructs an RFCAddRequest
        ///
        /// </summary>
        /// <param name="entry">the entry
        ///
        /// </param>
        /// <param name="attributes">the Attributes making up the Entry
        /// </param>
        public RfcAddRequest(RfcLdapDN entry, RfcAttributeList attributes) : base(2)
        {
            add(entry);
            add(attributes);
            return;
        }
        //*************************************************************************
        // Constructors for RfcLdapResult
        //*************************************************************************

        /// <summary> Constructs an RfcLdapResult from parameters
        ///
        /// </summary>
        /// <param name="resultCode">the result code of the operation
        ///
        /// </param>
        /// <param name="matchedDN">the matched DN returned from the server
        ///
        /// </param>
        /// <param name="errorMessage">the diagnostic message returned from the server
        /// </param>
        public RfcLdapResult(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage) : this(resultCode, matchedDN, errorMessage, null)
        {
            return;
        }
Esempio n. 16
0
 /// <summary> Constructs an RfcAddResponse from parameters.
 ///
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 ///
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 ///
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 ///
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcAddResponse(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral) : base(resultCode, matchedDN, errorMessage, referral)
 {
     return;
 }
Esempio n. 17
0
 /// <summary> Constructs an RfcCompareResponse from parameters.
 /// 
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 /// 
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 /// 
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 /// 
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcCompareResponse(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral)
     : base(resultCode, matchedDN, errorMessage, referral)
 {
     return ;
 }
Esempio n. 18
0
 /// <summary> Constructs an RfcSearchResultDone from parameters.
 ///
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 ///
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 ///
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 ///
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcSearchResultDone(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral)
     : base(resultCode, matchedDN, errorMessage, referral)
 {
 }
Esempio n. 19
0
 //*************************************************************************
 // Constructors for RfcLdapResult
 //*************************************************************************
 /// <summary> Constructs an RfcLdapResult from parameters
 /// 
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 /// 
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 /// 
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 /// </param>
 public RfcLdapResult(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage)
     : this(resultCode, matchedDN, errorMessage, null)
 {
     return ;
 }
        //*************************************************************************
        // Constructors for ModifyDNRequest
        //*************************************************************************

        /// <summary> </summary>
        public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn) : this(entry, newrdn, deleteoldrdn, null)
        {
        }
 /// <summary> Constructs an RfcSearchResultDone from parameters.
 /// 
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 /// 
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 /// 
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 /// 
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcSearchResultDone(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral)
     : base(resultCode, matchedDN, errorMessage, referral)
 {
     return ;
 }
Esempio n. 22
0
 /// <summary> Constructs an RfcLdapResult from parameters
 /// 
 /// </summary>
 /// <param name="resultCode">the result code of the operation
 /// 
 /// </param>
 /// <param name="matchedDN">the matched DN returned from the server
 /// 
 /// </param>
 /// <param name="errorMessage">the diagnostic message returned from the server
 /// 
 /// </param>
 /// <param name="referral">the referral(s) returned by the server
 /// </param>
 public RfcLdapResult(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral)
     : base(4)
 {
     add(resultCode);
     add(matchedDN);
     add(errorMessage);
     if (referral != null)
         add(referral);
     return ;
 }
Esempio n. 23
0
 //*************************************************************************
 // Constructors for ModifyDNRequest
 //*************************************************************************
 /// <summary> </summary>
 public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn)
     : this(entry, newrdn, deleteoldrdn, null)
 {
 }