Purpose
To enhance security, we aim to use Secure Network Communications (SNC) for GuiXT RFC calls—typically in combination with Single Sign-On ( SSO).


When SSO is enabled in SAP Logon, the -currentUser option will not function unless the required SNC parameters are configured in the GuiXT profile. Without these settings, GuiXT prompts the user with a password entry dialog.

Solution 1
Execute all RFC functions (Call statements, reading content from SAP Web Repository or SAP MIME repository,..) with the currently logged on user. You need to give all GuiXT users the necessary authorizations e.g. for reading the SAP MIME repository.

GuiXT profile:

RfcUser   *
RFcPassword *
RfcCurrentClient Yes
RfcConnect  SNC_MODE=1 SNC_PARTNERNAME="p:CN=&database, O=myCompany, C=XX"

Adjust the SNC_PARTNERNAME parameter according to your system settings. The SNC partnername is shown in the SAP system when you click on System->Status->Other Kernel Information:

If different conventions are used for different SAP systems, use the ifDatabase option, e.g.

RfcConnect  ifDatabase=PR7 SNC_MODE=1 SNC_PARTNERNAME="p/SECUDE:CN=PR7, O=myCompany, C=DE"

if you use SNC without SSO, add SNC_SSO=0 to the SNC parameters.

Solution 2
Use an RFC user for all general functions such as MIME repository access and for those Call statements which do not require special authorization checks, and use the -currentUser option with SSO for Calls where secured access is necessary.

GuiXT profile:

RfcUser   myrfcuser
RRFcPasswordEnc CTYVQFYXUJYEYTDKGYENXXCEEWMZORYWQ...
RfcCurrentClient Yes
RfcConnect  ifCurrentUser=Yes SNC_MODE=1 SNC_PARTNERNAME="p:CN=&database, O=myCompany, C=XX"


Further if-options

The RfcConnect parameter in the GuiXT profile supports the following options to distinguish RFC connections:

ifDatabase=XXX         // SAP system name XXX
ifClient=XXX              // RFC connection uses client XXX
ifCurrentUser=Yes     // Call statement with -currentUser option
ifAshost=xxxxx        // Application server xxxxx

The options can be combined, for example

ifDatabase=PR6 ifCurrentUser=Yes  SNC_MODE=1 ...

 

Further SNC-options
All SAP SNC options are supported, although in most cases SNC_MODE= and SNC_PARTNERNAME= will be sufficient. For details please see the SAP documentation.

SNC_MODE=1              // 1:SNC active  0:inactive
SNC_PARTNERNAME=  // SNC name of target SAP system

SNC_QOP=8                 // Level of protection 1,2,3,8,9
SNC_LIB=                     // Path to SAP security library, set by environment variable
SNC_MYNAME=            // SNC name of user, set by the security library

SNC_SSO=1              // 1:SSO active (default)  0:SSO inactive i.e. SNC only

 

Firewall settings 
RFC normally uses the port 33XX where XX is the SAP system number. With SNC, RFC uses the port 48XX (configurable).

 

Components
InputAssistant