OPENCHANGE-NSPI-RESOLVENAMES

From OpenChange wiki

Jump to: navigation, search


Contents

Objectives

This torture test reproduces Outlook behavior when a recipient is written in the To,Cc,Bcc fields. The torture test will query the Windows Address Book and return information on the specified recipient.

Running the test

smbtorture  --option="exchange:resolvename=toto,jkerihue,titi,test,Admin"                \
            --option="mapi:profile_store=/tmp/profiles.ldb" --option="mapi:profile=2000" \
            -Ujkerihuel%openchange ncacn_ip_tcp:192.168.194.22[print] OPENCHANGE-NSPI-RESOLVENAMES

smbtorture parameters

  • exchange:resolvename: Specify a list of recipients to resolve. Each recipient has be separated with a ,
  • mapi:profile_store: Path to the profile database
  • mapi:profile: profile to use
  • mapi:unicode: Specify if the results should be returned using UNICODE (1) or UTF8 (0) the default.
  • -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-NSPI-RESOLVENAMES: 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 omit both the mapi:profile_store and mapi:profile options.

Torture Test Output

Loading openchange torture test
Using seed 1175891883
   MAPIInitialize           : MAPI_E_SUCCESS (0x0)
   NspiBind                 : MAPI_E_SUCCESS (0x0)
   EcDoConnect              : MAPI_E_SUCCESS (0x0)
   MapiLogonEx              : MAPI_E_SUCCESS (0x0)
   ResolveNames             : MAPI_E_SUCCESS (0x0)
       RESOLVED (toto)
               [+] PR_DISPLAY_NAME: toto sur un bateau
               [+] PR_ADDRTYPE: EX
               [+] PR_GIVEN_NAME: toto
               [+] PR_SMTP_ADDRESS: toto@openchange.local
               [+] PR_EMAIL_ADDRESS: /o=First Organization/ou=First Administrative Group/cn=Recipients/cn=toto
               [+] PR_TRANSMITTABLE_DISPLAY_NAME: toto sur un bateau
       RESOLVED (jkerihue)
               [+] PR_DISPLAY_NAME: Julien K. Kerihuel
               [+] PR_ADDRTYPE: EX
               [+] PR_GIVEN_NAME: Julien
               [+] PR_SMTP_ADDRESS: jkerihuel@openchange.local
               [+] PR_EMAIL_ADDRESS: /o=First Organization/ou=First Administrative Group/cn=Recipients/cn=jkerihuel
               [+] PR_TRANSMITTABLE_DISPLAY_NAME: Julien K. Kerihuel
       UNRESOLVED (titi)
       UNRESOLVED (test)
       RESOLVED (Admin)
               [+] PR_DISPLAY_NAME: Administrator
               [+] PR_ADDRTYPE: EX
               [+] PR_SMTP_ADDRESS: Administrator@openchange.local
               [+] PR_EMAIL_ADDRESS: /o=First Organization/ou=First Administrative Group/cn=Recipients/cn=Administrator
               [+] PR_TRANSMITTABLE_DISPLAY_NAME: Administrator
   MAPIFreeBuffer: rowset   : MAPI_E_SUCCESS (0x0)
   MAPIFreeBuffer: flaglist : MAPI_E_SUCCESS (0x0)
[jkerihuel@localhost MAILOOK]$
Personal tools
Toolbox