Re: Verifying existence of a mailbox for a given username



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
.



Relevant Pages

  • Re: OWA login problems
    ... But anyway, since just using USERNAME works from the desktop, this indicates ... Maybe one of the authentication ... Outlook Web Access For PDA, ... the Virtual Directory named Exchange and select properties. ...
    (microsoft.public.exchange.connectivity)
  • Strange Problem with Authentication Has anyone ever run across thi
    ... I have 3 DC lets call them Main, Exchange and Util. ... drive on the server it asks for a username and password. ... Selecting the domain controler with the Operations master token for the PDC ...
    (microsoft.public.windows.server.general)
  • Re: Changing a username due to marrage?
    ... this will be display the new name in Exchange and AD. ... >> Double click on the username and enter the correct display information. ... >> All posts are based on my past experiences, ...
    (microsoft.public.windows.server.sbs)
  • Re: OWA login problems
    ... I have been logging in as just username which is the way that I ... login from any desktop. ... Outlook Web Access For PDA, ... the Virtual Directory named Exchange and select properties. ...
    (microsoft.public.exchange.connectivity)
  • Re: ADC Tool Step 3 - Resource Mailbox Wizard
    ... The resource mailboxes are still going to be replicated ... > will still exist on Exchange 5.5 server, ... I think of the AD as Exchange 2K3's ...
    (microsoft.public.exchange2000.setup.installation)