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

If you want to search based on the sAMAccout name , you can use the filter condition like mentioned below :

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:-

url=AD url
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