PcapPlusPlus
24.09
|
#include <LdapLayer.h>
Classes | |
struct | SaslAuthentication |
Public Types | |
enum class | AuthenticationType : uint8_t { Simple = 0 , Sasl = 3 , NotApplicable = 255 } |
Public Member Functions | |
LdapBindRequestLayer (uint16_t messageId, uint8_t version, const std::string &name, const std::string &simpleAuthentication, const std::vector< LdapControl > &controls=std::vector< LdapControl >()) | |
LdapBindRequestLayer (uint16_t messageId, uint8_t version, const std::string &name, const SaslAuthentication &saslAuthentication, const std::vector< LdapControl > &controls=std::vector< LdapControl >()) | |
uint32_t | getVersion () const |
std::string | getName () const |
AuthenticationType | getAuthenticationType () const |
std::string | getSimpleAuthentication () const |
SaslAuthentication | getSaslAuthentication () 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 >()) | |
Asn1SequenceRecord * | getRootAsn1Record () const |
Asn1ConstructedRecord * | getLdapOperationAsn1Record () const |
uint16_t | getMessageID () const |
std::vector< LdapControl > | getControls () 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 () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () 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 LdapLayer * | parseLdapMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
Represents LDAP bind request operation
|
strong |
pcpp::LdapBindRequestLayer::LdapBindRequestLayer | ( | uint16_t | messageId, |
uint8_t | version, | ||
const std::string & | name, | ||
const std::string & | simpleAuthentication, | ||
const std::vector< LdapControl > & | controls = std::vector< LdapControl >() |
||
) |
A constructor to create a new LDAP bind request message with simple authentication
[in] | messageId | The LDAP message ID |
[in] | version | The LDAP protocol version that the client wants to use |
[in] | name | The DN of the user to authenticate |
[in] | simpleAuthentication | Simple authentication to use in this message |
[in] | controls | A vector of LDAP controls. This is an optional parameter, if not provided the message will be created without LDAP controls |
pcpp::LdapBindRequestLayer::LdapBindRequestLayer | ( | uint16_t | messageId, |
uint8_t | version, | ||
const std::string & | name, | ||
const SaslAuthentication & | saslAuthentication, | ||
const std::vector< LdapControl > & | controls = std::vector< LdapControl >() |
||
) |
A constructor to create a new LDAP bind request message with SASL authentication
[in] | messageId | The LDAP message ID |
[in] | version | The LDAP protocol version that the client wants to use |
[in] | name | The DN of the user to authenticate |
[in] | saslAuthentication | SASL authentication to use in this message |
[in] | controls | A vector of LDAP controls. This is an optional parameter, if not provided the message will be created without LDAP controls |
AuthenticationType pcpp::LdapBindRequestLayer::getAuthenticationType | ( | ) | const |
std::string pcpp::LdapBindRequestLayer::getName | ( | ) | const |
SaslAuthentication pcpp::LdapBindRequestLayer::getSaslAuthentication | ( | ) | const |
std::invalid_argument | if the message doesn't include SASL authentication |
std::string pcpp::LdapBindRequestLayer::getSimpleAuthentication | ( | ) | const |
std::invalid_argument | if the message doesn't include simple authentication |
uint32_t pcpp::LdapBindRequestLayer::getVersion | ( | ) | const |