The filter in this example is based on Active Directory security account manager (SAM) objects. This and other search criteria may vary depending on the directory you search.
C> ldapsearch -H ldap://host:port/ -b "CN=Users,DC=esrootdom, DC=esdev,DC=tdat" -s one "(sAMAccountName=drct01)"