![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
"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 |
Display Modes | |
|
|
![]() |
||||
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 |