A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Impersonate user on logon with redemption



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 21st 07, 05:22 AM posted to microsoft.public.outlook.program_vba
Safal
external usenet poster
 
Posts: 28
Default Impersonate user on logon with redemption

Is it possible to impersonate another user(say the administrator) using the
redemption logon

Is the syntax below correct ?

set Session = CreateObject("Redemption.RDOSession")
Session.Logon '"Admin","Admin",false,true

Also do we specify the NT logon credentials or the "User Name" as per the
exchange server.

-Safal
  #2  
Old August 21st 07, 06:17 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Impersonate user on logon with redemption

You can impersonate another user using the Windows API (LogonUser /
ImpersonateLoggedOnUser) first, but MAPI does not work too well with
impersonation.
RDOSession.Logon takes the name of the existing profile, *not* a user name.
If you need to connect to a particular user's mailbox, use
RDOSession.LogonExchangeMailbox; it takes the user name and the Exchange
Servere name.

As a rule of thumb, if you need to access multiple mailboxes, run your code
under the user identity of the admin (or a user who can access the required
mailboxes), call RDOSession.LogonExchangeMailbox specifying the name of that
user, then open other users mailboxes using
RDOSession.Stores.GetSharedMailbox.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Safal" wrote in message
...
Is it possible to impersonate another user(say the administrator) using
the
redemption logon

Is the syntax below correct ?

set Session = CreateObject("Redemption.RDOSession")
Session.Logon '"Admin","Admin",false,true

Also do we specify the NT logon credentials or the "User Name" as per the
exchange server.

-Safal



  #3  
Old August 21st 07, 10:14 PM posted to microsoft.public.outlook.program_vba
Dan Mitchell
external usenet poster
 
Posts: 58
Default Impersonate user on logon with redemption

"Dmitry Streblechenko" wrote in
:
You can impersonate another user using the Windows API (LogonUser /
ImpersonateLoggedOnUser) first, but MAPI does not work too well with
impersonation.


http://blogs.msdn.com/stephen_griffi...13/407925.aspx has
more details on what exactly doesn't work -- to quote from the "Getting
MAPI to work with impersonation is very hard. If you have an application
which uses MAPI with impersonation and you're not experiencing problems,
congratulations."

-- dan
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Outlook auto configure at user logon(Domain) Vijay Outlook and VBA 3 August 16th 07 08:50 AM
set up email outlook for yahoo and am quizzed for logon user gary Outlook - General Queries 2 January 20th 07 08:42 AM
How Do I Configure Outlook With Joe User Logon Rights Casey Outlook - Installation 0 October 17th 06 03:29 PM
Redemption+CBuilder: RDOSession.Logon MAPILogonEx-Error [email protected] Add-ins for Outlook 2 September 1st 06 08:32 AM
pop3 server address is attaching to my user logon name. Raymond Mbah Outlook - Installation 0 February 27th 06 05:56 PM


All times are GMT +1. The time now is 09:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.