PcapPlusPlus  Next
pcpp::LdapModifyDNResponseLayer Class Reference

#include <LdapLayer.h>

Inheritance diagram for pcpp::LdapModifyDNResponseLayer:
pcpp::LdapResponseLayer pcpp::LdapLayer pcpp::Layer pcpp::IDataContainer

Public Member Functions

 LdapModifyDNResponseLayer (uint16_t messageId, LdapResultCode resultCode, const std::string &matchedDN, const std::string &diagnosticMessage, const std::vector< std::string > &referral=std::vector< std::string >(), const std::vector< LdapControl > &controls=std::vector< LdapControl >())
 
- Public Member Functions inherited from pcpp::LdapResponseLayer
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
 ~Layer () override
 
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 override
 

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

Represents LDAP modify DN response message

Constructor & Destructor Documentation

◆ LdapModifyDNResponseLayer()

pcpp::LdapModifyDNResponseLayer::LdapModifyDNResponseLayer ( uint16_t  messageId,
LdapResultCode  resultCode,
const std::string &  matchedDN,
const std::string &  diagnosticMessage,
const std::vector< std::string > &  referral = std::vector<std::string>(),
const std::vector< LdapControl > &  controls = std::vector<LdapControl>() 
)
inline

A constructor to create a new LDAP modify DN response message

Parameters
[in]messageIdThe LDAP message ID
[in]resultCodeThe LDAP result code
[in]matchedDNThe distinguished name (DN) to set on the message. If not applicable pass an empty string
[in]diagnosticMessageThe additional information to set on the message. If not applicable pass an empty string
[in]referralA list of URIs to re-try the operation somewhere else. This is an optional parameter. If not provided then referral won't be added to the message
[in]controlsA vector of LDAP controls. This is an optional parameter, if not provided the message will be created without LDAP controls