Re: Verifying existence of a mailbox for a given username
- From: Michael McGranahan <mmcgranahan@xxxxxxxxxxxxxxxx>
- Date: Thu, 01 Jun 2006 17:31:02 -0700
Hi,
Thanks for your help. On what other parameters can the search be
performed? I am not given the first name, only the username (or alias).
To clarify, I'm using ADO with the ExOLEDB driver to add/modify/remove
appointments in an Exchange store. None of the relevant sample code
demonstrates how to check if a mailbox in particular (or any arbitrary
path in the Exchange store, generally speaking) exists before attempting
to open a connection to it. Or is it recommended to just handle the
exception that is thrown when attempting to open a resource that doesn't
exist?
Thanks again,
Michael
Henning Krause [MVP - Exchange] wrote:
Hello,
you can use the OWA galfind.
While this is not documented and subject to change in future version of
Exchange, it will certainly work with Exchange 2003. Then FN= parameter
ist the firstname.
You can use Fiddler to the parameters of the other options.
OWA uses this feature when adding recipients to an email.
GET /exchange/username/?Cmd=galfind&FN=%73%74%65%66%61%6e HTTP/1.1
Be sure to fake the IE useragent string to get the proper response from
the Exchange server.
Best regards,
Henning Krause
"Michael McGranahan" <mmcgranahan@xxxxxxxxxxxxxxxx> wrote in message
news:OfkhsVEhGHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
What is the best/correct way to verify the existence of a mailbox for a
given username without using ADSI? I am building a web service that
interfaces with Exchange 2003. The client supplies the username (and
other data) in calls such as CreateAppointment and
GetListOfAppointments. I am restricted for business reasons from
interfacing directly with ADSI. How can I validate the username?
Should I simply try to open the HTTP resource (e.g.
"http://localhost/exchange/joe") and catch exceptions when the resource
doesn't exist? Does CDOEXM provide relevant functionality?
Thanks for your help.
--
Michael McGranahan
Programmer/Analyst
College Information Services, UCLA
--
Michael McGranahan
Programmer/Analyst
College Information Services, UCLA
.
- Follow-Ups:
- Re: Verifying existence of a mailbox for a given username
- From: Henning Krause [MVP - Exchange]
- Re: Verifying existence of a mailbox for a given username
- References:
- Re: Verifying existence of a mailbox for a given username
- From: Henning Krause [MVP - Exchange]
- Re: Verifying existence of a mailbox for a given username
- Prev by Date: Re: Using Delegates and WebDav
- Next by Date: Re: Verifying existence of a mailbox for a given username
- Previous by thread: Re: Verifying existence of a mailbox for a given username
- Next by thread: Re: Verifying existence of a mailbox for a given username
- Index(es):
Relevant Pages
|