OPENCHANGE-MAPI-SENDAPPOINTMENT

From OpenChange wiki

Jump to: navigation, search


Contents

Objectives

This torture test reproduces Outlook behavior when creating a calendar item in the specified user calendar folder on an Exchange Server 2000.

Running the test

 smbtorture  --option="mapi:appointment=do you copy fetch"              \
             --option="mapi:location=Paris"                             \
             --option="mapi:start=2007-05-10 12:00:00"                  \
             --option="mapi:end=2007-05-10 15:30:00"                    \
             --option="mapi:busystatus=3"                               \
             --option="mapi:label=5"                                    \
             --option="mapi:body=I hope everything is going to be fine" \
       ncacn_ip_tcp:192.168.194.22[print] OPENCHANGE-MAPI-SENDAPPOINTMENT

smbtorture parameters

  • mapi:profile_store: Path to the profile database
  • mapi:profile: profile to use
  • mapi:appointment: the title of the appointment
  • mapi:location: the appointment location
  • mapi:start: the appointment start date. Use the same date format that the one described in the output above
  • mapi:end: the appointment end date. Use the same date format than the one described in the output above.
  • mapi:busystatus: The busy status. Following values are accepted:
    • 0 (Free)
    • 1 (Tentative)
    • 2 (Busy)
    • 3 (Out of Office)
  • mapi:label: Set the appointment label (background color in Outlook view). It takes an integer between 0 and 10
  • -UAdministrator%secretpass: These are the credentials for DCERPC/AUTH3 authentication on epmapper and nspi endpoints. Since credentials are already set when loading the profile, these parameters are not mandatory
  • OPENCHANGE-MAPI-SENDAPPOINTMENT: The torture test name we are running

Remarks

If your profile database is at the default location $HOME/.openchange/profiles.ldb and you have set a default profile using mapiprofile -S you can ommit both the mapi:profile_store and mapi:profile options.

Torture Test Output

 [jkerihuel@localhost trunk]$ smbtorture  --option="mapi:appointment=do you copy fetch"               \
                                          --option="mapi:location=Paris"                              \
                                          --option="mapi:start=2007-05-10 12:00:00"                   \
                                          --option="mapi:end=2007-05-10 15:30:00"                     \
                                          --option="mapi:busystatus=3"                                \
                                          --option="mapi:label=5"                                     \
                                          --option="mapi:body=I hope everything is going to be fine"  \ 
                                  ncacn_ip_tcp:192.168.194.22[print] OPENCHANGE-MAPI-SENDAPPOINTMENT
Loading openchange torture test
Using seed 1178758205
Password for [OPENCHANGE\jkerihuel]:
    MAPIInitialize           : MAPI_E_SUCCESS (0x0)
    MapiLogonEx              : MAPI_E_SUCCESS (0x0)
    OpenMsgStore             : MAPI_E_SUCCESS (0x0)
    OpenFolder               : MAPI_E_SUCCESS (0x0)
    GetHierarchyTable        : MAPI_E_SUCCESS (0x0)
    SetColumns               : MAPI_E_SUCCESS (0x0)
    QueryRows                : MAPI_E_SUCCESS (0x0)
    OpenFolder               : MAPI_E_SUCCESS (0x0)
    CreateMessage            : MAPI_E_SUCCESS (0x0)
    SetProps                 : MAPI_E_SUCCESS (0x0)
    SaveChangesMessage       : MAPI_E_SUCCESS (0x0)
[jkerihuel@localhost trunk]$

Screenshots

Personal tools
Toolbox