Impersonate With MAPI

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I am writing an application that will allow our helpdesk to change and
set the Out Of Office message for other users. The problem that I have
is the helpdesk will not have access to any of the mailboxes, and we
don't want to give it to them. Is there a way that I could create a
MAPI.Session for a user, but impersonate using an Exchange admin's
details that will be hard coded into the application? I have seen the
LogonUser API, but I am using W2K so it will not work for me. If it
means that I have to create a new profile each time that will not be a
problem.

Cheers
 
Steve said:
I am writing an application that will allow our helpdesk to change and
set the Out Of Office message for other users. The problem that I have
is the helpdesk will not have access to any of the mailboxes, and we
don't want to give it to them. Is there a way that I could create a
MAPI.Session for a user, but impersonate using an Exchange admin's
details that will be hard coded into the application? I have seen the
LogonUser API, but I am using W2K so it will not work for me. If it
means that I have to create a new profile each time that will not be a
problem.

According to:

LogonUser (Security: Platform SDK):
http://msdn.microsoft.com/library/en-us/security/security/logonuser.asp?frame=true

the LogonUser API works with Windows NT 4.0 SP3 and above.

--
Cheers,

Siegfried Weber

If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html

Why tables are bad: http://www.hotdesign.com/seybold/,
http://webdesign.about.com/cs/tables/a/aa020800b.htm

Note: Please do not send any e-mail to my old address
(e-mail address removed) because I am no longer connected with this
organization.
 
That, or you could do it as a web application that runs as the privileged
account and then prompt users for their credentials using a form. Or if
you're using ASP.Net you can set IIS to do the user authentication and still
configure the application to run under the privileged user account.

- Dave
 
Back
Top