PcapPlusPlus  24.09
pcpp::LdapResponseLayer Class Reference

#include <LdapLayer.h>

Inheritance diagram for pcpp::LdapResponseLayer:
pcpp::LdapLayer pcpp::Layer pcpp::IDataContainer pcpp::LdapAddResponseLayer pcpp::LdapBindResponseLayer pcpp::LdapCompareResponseLayer pcpp::LdapDeleteResponseLayer pcpp::LdapModifyDNResponseLayer pcpp::LdapModifyResponseLayer pcpp::LdapSearchResultDoneLayer

Public Member Functions

LdapResultCode getResultCode () const
 
std::string getMatchedDN () const
 
std::string getDiagnosticMessage () const
 
std::vector< std::string > getReferral () const
 
- Public Member Functions inherited from pcpp::LdapLayer
 LdapLayer (uint16_t messageId, LdapOperationType operationType, const std::vector< Asn1Record * > &messageRecords, const std::vector< LdapControl > &controls=std::vector< LdapControl >())
 
Asn1SequenceRecordgetRootAsn1Record () const
 
Asn1ConstructedRecordgetLdapOperationAsn1Record () const
 
uint16_t getMessageID () const
 
std::vector< LdapControlgetControls () const
 
virtual LdapOperationType getLdapOperationType () const
 
template<typename Method , typename ResultType >
bool tryGet (Method method, ResultType &result)
 
void parseNextLayer () override
 
size_t getHeaderLen () const override
 
void computeCalculateFields () override
 
OsiModelLayer getOsiModelLayer () const override
 
std::string toString () const override
 
- Public Member Functions inherited from pcpp::Layer
virtual ~Layer ()
 
LayergetNextLayer () const
 
LayergetPrevLayer () const
 
ProtocolType getProtocol () const
 
bool isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const
 
uint8_t * getData () const
 
size_t getDataLen () const
 
uint8_t * getLayerPayload () const
 
size_t getLayerPayloadSize () const
 
bool isAllocatedToPacket () const
 
void copyData (uint8_t *toArr) const
 
uint8_t * getDataPtr (size_t offset=0) const
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::LdapLayer
static bool isLdapPort (uint16_t port)
 
static LdapLayerparseLdapMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
 

Detailed Description

An abstract class for representing an LDAP response message. It's the parent class for all response message layers

Member Function Documentation

◆ getDiagnosticMessage()

std::string pcpp::LdapResponseLayer::getDiagnosticMessage ( ) const
Returns
An optional string that can provide additional information about the processing that was performed

◆ getMatchedDN()

std::string pcpp::LdapResponseLayer::getMatchedDN ( ) const
Returns
An optional distinguished name (DN) that may be included in the response to a request targeting an entry that does not exist

◆ getReferral()

std::vector<std::string> pcpp::LdapResponseLayer::getReferral ( ) const
Returns
An optional list of one or more URIs that the client may use to re-try the operation somewhere else. If referral doesn't exist on the message, and empty vector is returned

◆ getResultCode()

LdapResultCode pcpp::LdapResponseLayer::getResultCode ( ) const
Returns
LDAP result code