LDAP Query

Hello Team,

I need to get the email address from AD server, with a lookup parameter ( say from name). I am using pub.client.ldap:search API for the same.

Could you please provide what filter condition I should be using to get the result?

Please help.

Kind Regards
Sasa

If you want to search based on the sAMAccout name , you can use the filter condition like mentioned below :
(&(objectclass=user)(sAMAccountName=%Document/sAMAccountName%))

For more details on the attribute sAMAccountName : https://msdn.microsoft.com/en-us/library/ms679635(v=vs.85).aspx

Hello Rakesh

I have passed the below input but still unable to see any output:-

scope=object
url=AD url
filter=(&(objectclass=user)(sAMAccountName=Boxi))
close=yes
But still unable to find any relevant output. Please help.

can you please check with scope=subtree.

If login is enabled for AD , then supply principal and credentials