PcapPlusPlus
24.09
|
#include <LdapLayer.h>
Classes | |
class | DerefAliases |
class | SearchRequestScope |
Public Member Functions | |
LdapSearchRequestLayer (uint16_t messageId, const std::string &baseObject, SearchRequestScope scope, DerefAliases derefAliases, uint8_t sizeLimit, uint8_t timeLimit, bool typesOnly, Asn1Record *filterRecord, const std::vector< std::string > &attributes, const std::vector< LdapControl > &controls=std::vector< LdapControl >()) | |
std::string | getBaseObject () const |
SearchRequestScope | getScope () const |
DerefAliases | getDerefAlias () const |
uint8_t | getSizeLimit () const |
uint8_t | getTimeLimit () const |
bool | getTypesOnly () const |
Asn1Record * | getFilter () const |
std::vector< std::string > | getAttributes () 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 search request operation
pcpp::LdapSearchRequestLayer::LdapSearchRequestLayer | ( | uint16_t | messageId, |
const std::string & | baseObject, | ||
SearchRequestScope | scope, | ||
DerefAliases | derefAliases, | ||
uint8_t | sizeLimit, | ||
uint8_t | timeLimit, | ||
bool | typesOnly, | ||
Asn1Record * | filterRecord, | ||
const std::vector< std::string > & | attributes, | ||
const std::vector< LdapControl > & | controls = std::vector< LdapControl >() |
||
) |
A constructor to create a new LDAP search request message
[in] | messageId | The LDAP message ID |
[in] | baseObject | The base object for the LDAP search request entry |
[in] | scope | The portion of the target subtree that should be considered |
[in] | derefAliases | The alias dereferencing behavior, which indicates how the server should treat any aliases encountered while processing the search |
[in] | sizeLimit | The maximum number of entries that should be returned from the search |
[in] | timeLimit | The time limit for the search in seconds |
[in] | typesOnly | If this is given a value of true, then it indicates that entries that match the search criteria should be returned containing only the attribute descriptions for the attributes contained in that entry but should not include the values for those attributes. If this is given a value of false, then it indicates that the attribute values should be included in the entries that are returned |
[in] | filterRecord | The filter for the search. Please note that parsing for the search filter doesn't exist yet. Therefore, the expected input value should be a plain ASN.1 record |
[in] | attributes | A set of attributes to request for inclusion in entries that match the search criteria and are returned to the client |
[in] | controls | A vector of LDAP controls. This is an optional parameter, if not provided the message will be created without LDAP controls |
std::vector<std::string> pcpp::LdapSearchRequestLayer::getAttributes | ( | ) | const |
std::string pcpp::LdapSearchRequestLayer::getBaseObject | ( | ) | const |
DerefAliases pcpp::LdapSearchRequestLayer::getDerefAlias | ( | ) | const |
Asn1Record* pcpp::LdapSearchRequestLayer::getFilter | ( | ) | const |
SearchRequestScope pcpp::LdapSearchRequestLayer::getScope | ( | ) | const |
uint8_t pcpp::LdapSearchRequestLayer::getSizeLimit | ( | ) | const |
uint8_t pcpp::LdapSearchRequestLayer::getTimeLimit | ( | ) | const |
bool pcpp::LdapSearchRequestLayer::getTypesOnly | ( | ) | const |