Skip to main content

parse_search_request

Function parse_search_request 

Source
pub fn parse_search_request(data: &[u8]) -> Result<SearchRequestFields>
Expand description

Decode a SearchRequest’s content octets.

SearchRequest ::= [APPLICATION 3] SEQUENCE {
    baseObject LDAPDN, scope ENUMERATED, derefAliases ENUMERATED,
    sizeLimit INTEGER, timeLimit INTEGER, typesOnly BOOLEAN,
    filter Filter, attributes AttributeSelection }

The filter is the only recursive part of any LDAP request, and it is client-supplied and pre-authentication (a search needs no bind). This is the entry point the fuzz target drives.