//************************************************************************* // Constructors for BindRequest //************************************************************************* /// <summary> </summary> public RfcBindRequest(Asn1Integer version, RfcLdapDN name, RfcAuthenticationChoice auth) : base(3) { add(version); add(name); add(auth); return; }
//************************************************************************* // 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"); } return; }
/// <summary> </summary> public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn, RfcLdapDN newSuperior) : base(4) { add(entry); add(newrdn); add(deleteoldrdn); if (newSuperior != null) { newSuperior.setIdentifier(new Asn1Identifier(Asn1Identifier.CONTEXT, false, 0)); add(newSuperior); } }
/// <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; }
//************************************************************************* // 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; }
/// <summary> Constructs an RfcModifyResponse 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 RfcModifyResponse(Asn1Enumerated resultCode, RfcLdapDN matchedDN, RfcLdapString errorMessage, RfcReferral referral) : base(resultCode, matchedDN, errorMessage, referral) { return; }
//************************************************************************* // 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; }
//************************************************************************* // Constructor for ModifyRequest //************************************************************************* /// <summary> </summary> public RfcModifyRequest(RfcLdapDN object_Renamed, Asn1SequenceOf modification) : base(2) { add(object_Renamed); add(modification); return; }
//************************************************************************* // Constructors for ModifyDNRequest //************************************************************************* /// <summary> </summary> public RfcModifyDNRequest(RfcLdapDN entry, RfcRelativeLdapDN newrdn, Asn1Boolean deleteoldrdn) : this(entry, newrdn, deleteoldrdn, null) { }
//************************************************************************* // 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; }