Hello,
when searching Active Directory you don't use an SQL like syntax.
If you want to resolve a surname to an email based on the GAL, you could do
search of (&(sn=<name>)(showInAddressBook=<dn of gal>))
To do a search on the first name, the query would be:
(&(givenName=<name>)(showInAddressBook=<dn of gal>))
For both options:
(&(|(sn=<name>)(givenName=<name>))(showInAddressBook=<dn of gal>))
And do this search over the first childobject of the GC: directory entry.
You can even do a wildcard search if <name> is something like Foo*.
Best regards,
Henning Krause
> It is possibile to recreate the OWA Ctrl-K function to resolve the
> name?
[quoted text clipped - 8 lines]
> Thanks a lot for your reply.
> Ale.
Karim Batthish [MS] - 02 Jun 2006 19:21 GMT
Another option to consider is using the Active Directory "anr" search
parameter, like:
(&(anr=[user string])(mail=*))
to do a "Check names"-like query.
Cheers,
- Karim
> Hello,
>
[quoted text clipped - 27 lines]
>> Thanks a lot for your reply.
>> Ale.