Chris Henderson wrote:
I am querying AD to get the first proxyaddresses:smtp field with only the username but it is giving me lots of other information that I don't really need.
Just ask for attribute 'proxyaddresses'.
Here's my query:
ldapsearch -x -h ad3.merog.org -b "dc=ad3,dc=merog,dc=org" cn="user name"
ldapsearch -x -h ad3.merog.org -b "dc=ad3,dc=merog,dc=org" "(cn=user name)" proxyaddresses
You have to sort out the attribute values starting with "smtp:" yourself at the client side since AFAIK AD does not support the matched values control.
Ciao, Michael.