Skip to main content

Port 389

Basic

Enumerating ldap port

search for namingcontexts in the search scope base.

ldapsearch -x -s base namingcontexts -H 'ldap://10.10.10.161'

Searching for specific user with sAMAccountName

ldapsearch -x -b "DC=htb,DC=local" '(sAMAccountName=sebastien)' -H 'ldap://10.10.10.161' -D "CN=person,DC=htb,DC=local"