PcapPlusPlus  24.09
pcpp::LdapOperationType Class Reference

An enum wrapper class for LDAP operation types. More...

#include <LdapLayer.h>

Public Types

enum  Value : uint8_t {
  BindRequest = 0 , BindResponse = 1 , UnbindRequest = 2 , SearchRequest = 3 ,
  SearchResultEntry = 4 , SearchResultDone = 5 , ModifyRequest = 6 , ModifyResponse = 7 ,
  AddRequest = 8 , AddResponse = 9 , DeleteRequest = 10 , DeleteResponse = 11 ,
  ModifyDNRequest = 12 , ModifyDNResponse = 13 , CompareRequest = 14 , CompareResponse = 15 ,
  AbandonRequest = 16 , SearchResultReference = 19 , ExtendedRequest = 23 , ExtendedResponse = 24 ,
  IntermediateResponse = 25 , Unknown = 255
}
 

Public Member Functions

constexpr LdapOperationType (Value value)
 
std::string toString () const
 

Static Public Member Functions

static LdapOperationType fromUintValue (uint8_t value)
 

Detailed Description

An enum wrapper class for LDAP operation types.

Member Enumeration Documentation

◆ Value

Define enum types and the corresponding int values

Enumerator
BindRequest 

Bind Request.

BindResponse 

Bind Response.

UnbindRequest 

Unbind Request.

SearchRequest 

Search Request.

SearchResultEntry 

Search Result Entry.

SearchResultDone 

Search Result Done.

ModifyRequest 

Modify Request.

ModifyResponse 

Modify Response.

AddRequest 

Add Request.

AddResponse 

Add Response.

DeleteRequest 

Delete Request.

DeleteResponse 

Delete Response.

ModifyDNRequest 

Modify DN (Distinguished Name) Request.

ModifyDNResponse 

Modify DN (Distinguished Name) Response.

CompareRequest 

Compare Request.

CompareResponse 

Compare Response.

AbandonRequest 

Abandon Request.

SearchResultReference 

Search Result Reference.

ExtendedRequest 

Extended Request.

ExtendedResponse 

Extended Response.

IntermediateResponse 

Intermediate Response.

Unknown 

Unknown operation type.

Constructor & Destructor Documentation

◆ LdapOperationType()

constexpr pcpp::LdapOperationType::LdapOperationType ( Value  value)
inlineconstexpr

Construct LdapOperationType from Value enum

Parameters
[in]valuethe opetation type enum value

Member Function Documentation

◆ fromUintValue()

static LdapOperationType pcpp::LdapOperationType::fromUintValue ( uint8_t  value)
static

A static method that creates LdapOperationType from an integer value

Parameters
[in]valueThe operation type integer value
Returns
The operation type that corresponds to the integer value. If the integer value doesn't corresponds to any operation type, LdapOperationType::Unknown is returned

◆ toString()

std::string pcpp::LdapOperationType::toString ( ) const
Returns
A string representation of the operation type