Re: Cross domain exchange server access, popup boxes....
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 11:36:32 -0700
No way around it: you either need to be able to use
LogonUser/ImpersonateLoggedOnUser or run your app as an admin to be able to
use IExchangeManageStore to access any mailbox.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Jeremy" <jeremy.borden@xxxxxxxxx> wrote in message
news:1119981866.926754.311570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I work for a computer forensics company and we extract large amounts of
> data from MAPI mail stores. I'm developing a component to interface
> directly with an exchange server. In the past we exported all the mail
> data to PST but this has proven problematic for a number of reasons.
> We would like to be able to simply plug a network cable into a restored
> exchange server and access the data. The user would only have to enter
> the machine name and an administrator's user name and password.
>
> My problem is this. In my test app, when I build up the exchange
> service in the profile and attempt to configure (ConfigureMsgService)
> it, I get a popup to authenticate. If I type in the user and password
> everything works fine. The actual application, however, runs as a
> windows service so a popup box won't fly at all. We need to enter the
> credentials through our own seperate UI and save them in a database.
>
> The solution that I've seen proposed for this problem is to use the
> LogonUser system call to impersonate the user that can access the
> server. Unfortunately, the server is on its own domain that doesn't
> have a trust with the domain that's trying to access it. LogonUser,
> then, fails because I'm trying to call it with a user that isn't
> recognized on the local box.
>
> Is there any way to programmatically pass the credentials to the server
> so I don't get the popup?
>
> And if not, is there any way to impersonate a user that isn't
> recognized on the local domain?
>
.
- Follow-Ups:
- Re: Cross domain exchange server access, popup boxes....
- From: Jeremy
- Re: Cross domain exchange server access, popup boxes....
- From: Houw Sun
- Re: Cross domain exchange server access, popup boxes....
- References:
- Cross domain exchange server access, popup boxes....
- From: Jeremy
- Cross domain exchange server access, popup boxes....
- Prev by Date: Re: Reading all mail items
- Next by Date: Delete Additional Mailbox question - not Add Additional Mailbox
- Previous by thread: Cross domain exchange server access, popup boxes....
- Next by thread: Re: Cross domain exchange server access, popup boxes....
- Index(es):
Relevant Pages
|