ldapsearch
LDAP queries against a domain directory.
An LDAP client to query a domain directory. With an anonymous bind or credentials it dumps objects and attributes (users, groups, descriptions); passwords often turn up in attributes like description or userPassword. The basis of manual AD enumeration.
Family Active Directory enumeration
Flags -x -H -b -D -w -s base
Concepts BloodHound
Cheatsheet Enumeration
Installation
sudo apt install -y ldap-utilsUseful commands
When it fails
result: 1 Operations errorAnonymous bind is not allowed on that directory. It is not a syntax error in the filter or in the search base: you have to authenticate (-D '<user>@<domain>' -w '<pass>'). An LDAP that does allow unauthenticated reads answersresult: 0 Success.seen in Cicada
Appears in
Some machines where its use is documented; not an exhaustive list.