LDAP Enumeration Using enum4linux
Enum4linux is a great tool that is used in windows enumeration, hence we are going to look at this tool’s usage. Using the below command, you can enumerate the accounts and groups.
$ enum4linux <IP address> | egrep "Account|Domain|Lockout|group"
LDAP Enumeration
Before continuing reading, read about the LDAP in general. Lightweight Directory Access Protocol (LDAP) is an internet protocol that works on TCP/IP, used to access information from directories. The LDAP protocol is used to access an active directory. LDAP enumeration is a technique used to enumerate the active directory. This service mainly runs on TCP ports 389 and 639 as default. LDAP enumeration can help enumerate usernames, addresses, and much juicy information that can be later used for other attacks including social engineering attacks.
LDAP queries can be used to enumerate various things like usernames, groups, and much more stuff.