RDOCredentials object


RDOCredentials collection allows to cache the credentials used by the RDOAddressEntry.GetFreeBusy and RDOSession.LogonExchangeMailbox methods..


Returned by:



The example below caches user credentials for an Office 365 account and retrieves the free/busy information for an address from that domain.

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
Session.Credentials.Add "*.onmicrosoft.com", "test@MySite.onmicrosoft.com", "MyPassword"

Session.Credentials.Add "*.outlook.com", "test@MySite.onmicrosoft.com", "MyPassword" ' "*.outlook.com" is needed for Office 365 redirection
userEntryId = Session.AddressBook.CreateOneOffEntryID("Test User", "SMTP", "test@MySite.onmicrosoft.com", false, true)
set AddressEntry = Session.AddressBook.GetAddressEntryFromId(userEntryId)
MsgBox AddressEntry.GetFreeBusy(#07/01/2011#, 30, True)




Derived from: IDispatch


Caches the specific user name and password and returns an instance of the RDOCredential object.

ServerName - string. The name of the server, wilcards "*" and "?" are allowed (e.g. "*.outlook.com").

UserName - string, user name to be cached.

Password -string, password to be cached.

CredentialType - optional. If specified, must be one of the rdoCredentialType enum values:
  ctGeneric = 0
  ctDomain = 1
If not specified, Redemption checks if the user name in of the "domain\user" format. If yes, it assumes ctGeneric, otherwise ctDomain is assumed.

CredentialPersist - optional. If specified, must be one of the rdoCredentialPersist enum values:
cpNone (0) The value will be cached only while Redemption.dll is loaded.
cpWindowsLogonSession (1) The value will be cached for the duration of the Windows logon session.
cpLocalMachine (2) The value will be cached permanently for all users on the local machine.
cpEnterprise (3) The credential persists for all subsequent logon sessions on this same computer. It is visible to other logon sessions of this same user on this same computer and to logon sessions for this user on other computers.
If not specified, cpNone is used.
See the example above