scapy.layers.ldap

LDAP

RFC 1777 - LDAP v2 RFC 4511 - LDAP v3

class scapy.layers.ldap.ASN1F_LDAP_Authentication_krbv42DSA(name: str, default: Optional[scapy.asn1fields._A], context: Optional[Type[scapy.asn1.asn1.ASN1_Class]] = None, implicit_tag: Optional[int] = None, explicit_tag: Optional[int] = None, flexible_tag: Optional[bool] = False)[source]

Bases: scapy.asn1fields.ASN1F_STRING

ASN1_tag = <ASN1Tag krbv42DSA[162]>
default: Optional[_A]
class scapy.layers.ldap.ASN1F_LDAP_Authentication_krbv42LDAP(name: str, default: Optional[scapy.asn1fields._A], context: Optional[Type[scapy.asn1.asn1.ASN1_Class]] = None, implicit_tag: Optional[int] = None, explicit_tag: Optional[int] = None, flexible_tag: Optional[bool] = False)[source]

Bases: scapy.asn1fields.ASN1F_STRING

ASN1_tag = <ASN1Tag krbv42LDAP[161]>
default: Optional[_A]
class scapy.layers.ldap.ASN1F_LDAP_Authentication_simple(name: str, default: Optional[scapy.asn1fields._A], context: Optional[Type[scapy.asn1.asn1.ASN1_Class]] = None, implicit_tag: Optional[int] = None, explicit_tag: Optional[int] = None, flexible_tag: Optional[bool] = False)[source]

Bases: scapy.asn1fields.ASN1F_STRING

ASN1_tag = <ASN1Tag simple[160]>
default: Optional[_A]
class scapy.layers.ldap.ASN1_Class_LDAP_Authentication[source]

Bases: scapy.asn1.asn1.ASN1_Class_UNIVERSAL

ANY = <ASN1Tag ANY[0]>
BIT_STRING = <ASN1Tag BIT_STRING[3]>
BMP_STRING = <ASN1Tag BMP_STRING[30]>
BOOLEAN = <ASN1Tag BOOLEAN[1]>
CHAR_STRING = <ASN1Tag CHAR_STRING[29]>
COUNTER32 = <ASN1Tag COUNTER32[65]>
EMBEDDED_PDF = <ASN1Tag EMBEDDED_PDF[11]>
ENUMERATED = <ASN1Tag ENUMERATED[10]>
ERROR = <ASN1Tag ERROR[-3]>
EXTERNAL = <ASN1Tag EXTERNAL[8]>
GAUGE32 = <ASN1Tag GAUGE32[66]>
GENERALIZED_TIME = <ASN1Tag GENERALIZED_TIME[24]>
GENERAL_STRING = <ASN1Tag GENERAL_STRING[27]>
GRAPHIC_STRING = <ASN1Tag GRAPHIC_STRING[25]>
IA5_STRING = <ASN1Tag IA5_STRING[22]>
INTEGER = <ASN1Tag INTEGER[2]>
IPADDRESS = <ASN1Tag IPADDRESS[64]>
ISO646_STRING = <ASN1Tag ISO646_STRING[26]>
NONE = <ASN1Tag NONE[-1]>
NULL = <ASN1Tag NULL[5]>
NUMERIC_STRING = <ASN1Tag NUMERIC_STRING[18]>
OBJECT_DESCRIPTOR = <ASN1Tag OBJECT_DESCRIPTOR[7]>
OID = <ASN1Tag OID[6]>
PRINTABLE_STRING = <ASN1Tag PRINTABLE_STRING[19]>
RAW = <ASN1Tag RAW[-2]>
REAL = <ASN1Tag REAL[9]>
RELATIVE_OID = <ASN1Tag RELATIVE_OID[13]>
SEQUENCE = <ASN1Tag SEQUENCE[48]>
SET = <ASN1Tag SET[49]>
STRING = <ASN1Tag STRING[4]>
T61_STRING = <ASN1Tag T61_STRING[20]>
TIME_TICKS = <ASN1Tag TIME_TICKS[67]>
UNIVERSAL_STRING = <ASN1Tag UNIVERSAL_STRING[28]>
UTC_TIME = <ASN1Tag UTC_TIME[23]>
UTF8_STRING = <ASN1Tag UTF8_STRING[12]>
VIDEOTEX_STRING = <ASN1Tag VIDEOTEX_STRING[21]>
krbv42DSA = <ASN1Tag krbv42DSA[162]>
krbv42LDAP = <ASN1Tag krbv42LDAP[161]>
name = 'LDAP Authentication'
sasl = <ASN1Tag sasl[163]>
simple = <ASN1Tag simple[160]>
class scapy.layers.ldap.ASN1_LDAP_Authentication_krbv42DSA(val: scapy.asn1.asn1._K)[source]

Bases: scapy.asn1.asn1.ASN1_STRING

tag = <ASN1Tag krbv42DSA[162]>
class scapy.layers.ldap.ASN1_LDAP_Authentication_krbv42LDAP(val: scapy.asn1.asn1._K)[source]

Bases: scapy.asn1.asn1.ASN1_STRING

tag = <ASN1Tag krbv42LDAP[161]>
class scapy.layers.ldap.ASN1_LDAP_Authentication_simple(val: scapy.asn1.asn1._K)[source]

Bases: scapy.asn1.asn1.ASN1_STRING

tag = <ASN1Tag simple[160]>
class scapy.layers.ldap.AttributeValueAssertion(_pkt, /, *, attributeType=<ASN1_STRING['organizationName']>, attributeValue=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>)>
aliastypes
fields_desc
AttributeValueAssertion fields

attributeType

ASN1F_STRING

<ASN1_STRING['organizationName']>

attributeValue

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.BERcodec_LDAP_Authentication_krbv42DSA[source]

Bases: scapy.asn1.ber.BERcodec_SEQUENCE

tag = <ASN1Tag krbv42DSA[162]>
class scapy.layers.ldap.BERcodec_LDAP_Authentication_krbv42LDAP[source]

Bases: scapy.asn1.ber.BERcodec_SEQUENCE

tag = <ASN1Tag krbv42LDAP[161]>
class scapy.layers.ldap.BERcodec_LDAP_Authentication_simple[source]

Bases: scapy.asn1.ber.BERcodec_SEQUENCE

tag = <ASN1Tag simple[160]>
class scapy.layers.ldap.CLDAP(_pkt, /, *, messageID=0x0 <ASN1_INTEGER[0]>, user=<ASN1_STRING['']>, protocolOp=<LDAP_SearchRequest  filter=<LDAP_Filter  filter=<LDAP_FilterPresent  |> |> |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_CHOICE object>)>
aliastypes
fields_desc
CLDAP fields

messageID

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

user

ASN1F_STRING

<ASN1_STRING['']>

protocolOp

ASN1F_CHOICE

<LDAP_SearchRequest  filter=<LDAP_Filter  filter=<LDAP_FilterPresent  |> |> |>

payload_guess

Possible sublayers: CLDAP

class scapy.layers.ldap.LDAP(_pkt, /, *, messageID=0x0 <ASN1_INTEGER[0]>, protocolOp=<LDAP_SearchRequest  filter=<LDAP_Filter  filter=<LDAP_FilterPresent  |> |> |>, Controls=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_CHOICE object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
LDAP fields

messageID

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

protocolOp

ASN1F_CHOICE

<LDAP_SearchRequest  filter=<LDAP_Filter  filter=<LDAP_FilterPresent  |> |> |>

Controls

ASN1F_SEQUENCE_OF

[]

mysummary()[source]
payload_guess

Possible sublayers: LDAP

class scapy.layers.ldap.LDAPReferral(_pkt, /, *, uri=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAPReferral fields

uri

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_AbandonRequest(_pkt, /, *, messageID=0x0 <ASN1_INTEGER[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_INTEGER object>
aliastypes
fields_desc
LDAP_AbandonRequest fields

messageID

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

class scapy.layers.ldap.LDAP_BindRequest(_pkt, /, *, version=0x2 <ASN1_INTEGER[2]>, bind_name=<ASN1_STRING['']>, authentication=None)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_CHOICE object>)>
aliastypes
fields_desc
LDAP_BindRequest fields

version

ASN1F_INTEGER

0x2 <ASN1_INTEGER[2]>

bind_name

ASN1F_STRING

<ASN1_STRING['']>

authentication

ASN1F_CHOICE

None

class scapy.layers.ldap.LDAP_BindResponse(_pkt, /, *, resultCode=0x0 <ASN1_ENUMERATED[0]>, matchedDN=<ASN1_STRING['']>, diagnosticMessage=<ASN1_STRING['']>, referral=[], serverSaslCreds=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_ENUMERATED object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
LDAP_BindResponse fields

resultCode

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

matchedDN

ASN1F_STRING

<ASN1_STRING['']>

diagnosticMessage

ASN1F_STRING

<ASN1_STRING['']>

referral

ASN1F_SEQUENCE_OF

[]

serverSaslCreds

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_Control(_pkt, /, *, controlType=<ASN1_STRING['']>, criticality=False <ASN1_BOOLEAN[False]>, controlValue=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_optional object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
LDAP_Control fields

controlType

ASN1F_STRING

<ASN1_STRING['']>

criticality

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

controlValue

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_Filter(_pkt, /, *, filter=<LDAP_FilterPresent  |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
LDAP_Filter fields

filter

ASN1F_CHOICE

<LDAP_FilterPresent  |>

class scapy.layers.ldap.LDAP_FilterAnd(_pkt, /, *, and=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SET_OF and>
aliastypes
fields_desc
LDAP_FilterAnd fields

and

ASN1F_SET_OF

[]

class scapy.layers.ldap.LDAP_FilterOr(_pkt, /, *, or=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SET_OF or>
aliastypes
fields_desc
LDAP_FilterOr fields

or

ASN1F_SET_OF

[]

class scapy.layers.ldap.LDAP_FilterPresent(_pkt, /, *, present=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_FilterPresent fields

present

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SaslCredentials(_pkt, /, *, mechanism=<ASN1_STRING['']>, credentials=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>)>
aliastypes
fields_desc
LDAP_SaslCredentials fields

mechanism

ASN1F_STRING

<ASN1_STRING['']>

credentials

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SearchRequest(_pkt, /, *, baseObject=<ASN1_STRING['']>, scope=0x0 <ASN1_ENUMERATED[0]>, derefAliases=0x0 <ASN1_ENUMERATED[0]>, sizeLimit=0x0 <ASN1_INTEGER[0]>, timeLimit=0x0 <ASN1_INTEGER[0]>, attrsOnly=False <ASN1_BOOLEAN[False]>, filter=<LDAP_Filter  filter=<LDAP_FilterPresent  |> |>, attributes=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_ENUMERATED object>, <scapy.asn1fields.ASN1F_ENUMERATED object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_INTEGER object>, <scapy.asn1fields.ASN1F_BOOLEAN object>, <scapy.asn1fields.ASN1F_PACKET object>, <ASN1F_SEQUENCE_OF attributes>)>
aliastypes
fields_desc
LDAP_SearchRequest fields

baseObject

ASN1F_STRING

<ASN1_STRING['']>

scope

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

derefAliases

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

sizeLimit

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

timeLimit

ASN1F_INTEGER

0x0 <ASN1_INTEGER[0]>

attrsOnly

ASN1F_BOOLEAN

False <ASN1_BOOLEAN[False]>

filter

ASN1F_PACKET

<LDAP_Filter  filter=<LDAP_FilterPresent  |> |>

attributes

ASN1F_SEQUENCE_OF

[]

class scapy.layers.ldap.LDAP_SearchRequestAttribute(_pkt, /, *, type=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_SearchRequestAttribute fields

type

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SearchResponseEntry(_pkt, /, *, objectName=<ASN1_STRING['']>, attributes=<LDAP_SearchResponseEntryAttribute  |>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <ASN1F_SEQUENCE_OF attributes>)>
aliastypes
fields_desc
LDAP_SearchResponseEntry fields

objectName

ASN1F_STRING

<ASN1_STRING['']>

attributes

ASN1F_SEQUENCE_OF

<LDAP_SearchResponseEntryAttribute  |>

class scapy.layers.ldap.LDAP_SearchResponseEntryAttribute(_pkt, /, *, type=<ASN1_STRING['']>, values=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <ASN1F_SET_OF values>)>
aliastypes
fields_desc
LDAP_SearchResponseEntryAttribute fields

type

ASN1F_STRING

<ASN1_STRING['']>

values

ASN1F_SET_OF

[]

class scapy.layers.ldap.LDAP_SearchResponseEntryAttributeValue(_pkt, /, *, value=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_SearchResponseEntryAttributeValue fields

value

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SearchResponseResultCode(_pkt, /, *, resultCode=0x0 <ASN1_ENUMERATED[0]>, matchedDN=<ASN1_STRING['']>, diagnosticMessage=<ASN1_STRING['']>, referral=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_ENUMERATED object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_STRING object>, <scapy.asn1fields.ASN1F_optional object>)>
aliastypes
fields_desc
LDAP_SearchResponseResultCode fields

resultCode

ASN1F_ENUMERATED

0x0 <ASN1_ENUMERATED[0]>

matchedDN

ASN1F_STRING

<ASN1_STRING['']>

diagnosticMessage

ASN1F_STRING

<ASN1_STRING['']>

referral

ASN1F_SEQUENCE_OF

[]

class scapy.layers.ldap.LDAP_SubstringFilter(_pkt, /, *, type=<ASN1_STRING['']>, filters=[])[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <ASN1F_SEQUENCE(<scapy.asn1fields.ASN1F_STRING object>, <ASN1F_SEQUENCE_OF filters>)>
aliastypes
fields_desc
LDAP_SubstringFilter fields

type

ASN1F_STRING

<ASN1_STRING['']>

filters

ASN1F_SEQUENCE_OF

[]

class scapy.layers.ldap.LDAP_SubstringFilterAny(_pkt, /, *, any=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_SubstringFilterAny fields

any

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SubstringFilterFinal(_pkt, /, *, final=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_SubstringFilterFinal fields

final

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SubstringFilterInitial(_pkt, /, *, initial=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_STRING object>
aliastypes
fields_desc
LDAP_SubstringFilterInitial fields

initial

ASN1F_STRING

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_SubstringFilterStr(_pkt, /, *, str=<ASN1_STRING['']>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_CHOICE object>
aliastypes
fields_desc
LDAP_SubstringFilterStr fields

str

ASN1F_CHOICE

<ASN1_STRING['']>

class scapy.layers.ldap.LDAP_UnbindRequest(_pkt, /, *, info=<ASN1_NULL[0]>)[source]

Bases: scapy.asn1packet.ASN1_Packet

ASN1_codec = <ASN1Codec BER[1]>
ASN1_root = <scapy.asn1fields.ASN1F_NULL object>
aliastypes
fields_desc
LDAP_UnbindRequest fields

info

ASN1F_NULL

<ASN1_NULL[0]>