예제 #1
0
 internal LdapResponseMessage(Asn1LDAPResult result, Asn1LdapMessage message)
     : base(message)
 {
     ResultCode        = result.ResultCode;
     MatchedDN         = new LdapDistinguishedName(result.MatchedDN.Span);
     DiagnosticMessage = result.DiagnosticMessage.Span.LdapString();
     Referrals         = this.GetReferrals(result.Referral);
 }
예제 #2
0
        internal override void SetProtocolOp(Asn1ProtocolOp op)
        {
            var asn = new Asn1LDAPResult
            {
                ResultCode        = ResultCode,
                MatchedDN         = MatchedDN.GetBytes(),
                DiagnosticMessage = DiagnosticMessage.LdapString(),
                Referral          = this.GetReferrals(Referrals),
            };

            SetProtocolOp(op, asn);
        }
예제 #3
0
 internal override void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result)
 {
     op.AddResponse = result;
 }
예제 #4
0
 internal override void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result)
 {
     op.SearchResultDone = result;
 }
예제 #5
0
 internal abstract void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result);