ldapsearch
ldapsearch
ldapsearch -h x.x.xx. -D "CN=ServiceAccountName,OU=LDAP, OU=Service Accounts,OU=IMF,DC=WAS,DC=INT,DC=IMF,DC=ORG" -p 636 -b "DC=WAS,DC=INT,DC=IMF,DC=ORG" -w "somepass" "(&(objectclass=user)(sAMAccountName=ServiceAccountName))"
IT Notes from various projects because I forget, and hopefully they help you too.
ldapsearch -h x.x.xx. -D "CN=ServiceAccountName,OU=LDAP, OU=Service Accounts,OU=IMF,DC=WAS,DC=INT,DC=IMF,DC=ORG" -p 636 -b "DC=WAS,DC=INT,DC=IMF,DC=ORG" -w "somepass" "(&(objectclass=user)(sAMAccountName=ServiceAccountName))"