Re: Cross domain exchange server access, popup boxes....



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?
>


.



Relevant Pages

  • ASP.net & Win32 API (LogonUser) question...
    ... LogonUser to validate them and log them onto the server. ... Windows Authentication ONLY checked on the site in IIS. ... There are groups/users setup on the server for this app, ...
    (microsoft.public.dotnet.security)
  • ASP.net & Win32 API (LogonUser) question...
    ... LogonUser to validate them and log them onto the server. ... Windows Authentication ONLY checked on the site in IIS. ... There are groups/users setup on the server for this app, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • ASP.net & Win32 API (LogonUser) question...
    ... LogonUser to validate them and log them onto the server. ... Windows Authentication ONLY checked on the site in IIS. ... There are groups/users setup on the server for this app, ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.net & Win32 API (LogonUser) question...
    ... LogonUser to validate them and log them onto the server. ... Windows Authentication ONLY checked on the site in IIS. ... There are groups/users setup on the server for this app, ...
    (microsoft.public.dotnet.general)
  • Re: Homegrown synchronization
    ... to check for update files in the Import DropBox for the server. ... similar to the import code used to update a remote backend). ... code to close the "sync" app. ... synch app, but only one at a time would be able to do synchs. ...
    (microsoft.public.access.replication)