SAP Agent SNC setup: No credentials were supplied
search cancel

SAP Agent SNC setup: No credentials were supplied

book

Article ID: 427254

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Customer wants to set up an encrypted connection (Secure Network Connection (SNC)) between UC4 SAP agent, which is located on UC4 Windows Server and a SAP system, which is located on Linux server. 

Activate the Enable SNC checkbox to enable the SNC mode. I set up in connection object next parameters for SNC.

  • Path to SNC Service Library = <PATH>\sapcrypto.dll

    The name of the local SNC library.

  • Level of Security = 3 (default)

    The SNC service quality.

  • SNC Partner Name = p:CN=<DISTINGUISHED_NAME_SYSTEM>

    The name of the SNC partner system.

  • Own SNC Name = empty

    The own SNC name (optional).

  • Enable SSO = yes

    Activate the checkbox for the SSO connection.

The setup of the certificate on the client side using with sapgenpse was done following the AutoSys documentation:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-agent-for-sap/11-3/configuring/configure-snc.html

The following RFC error occurs:

RfcException raised by system [<noSID>|<IP_address>|<SYSTEM_NR>]:
message: Establishing connection to communication partner failed at CPIC-CALL: CMRCV on convId: 89815180 with rc: 20
connection parameters: TYPE=A DESTINATION=<SAP_SYSTEM> CLIENT=000 USER=<USER> LANG=DE ASHOST=<IP_address> SYSNR=<SYSTEM_NR> SNC_MODE=1 SNC_QOP=8 SNC_PARTNERNAME="p:CN=<DISTINGUISHED_NAME_SYSTEM>" SNC_MYNAME="p:CN=<DISTINGUISHED_NAME_CLIENT>" TRACE=1 PCS=1


LOCATION    CPIC (TCP/IP) with Unicode
ERROR       GSS-API(maj): No credentials were supplied
          Unable to establish the security context
          target="p:CN=<DISTINGUISHED_NAME_SYSTEM>"
TIME        Fri Jan 16 15:20:23 2026
RELEASE     754
COMPONENT   SNC (Secure Network Communication)
VERSION     6
RC          -4
MODULE      <PATH>/sncxxall.c
LINE        3604
DETAIL      SncPEstablishContext
SYSTEM CALL gss_init_sec_context
COUNTER     4

return code: RFC_FAILURE (RFC_FAILURE)
error group: RFC_ERROR_COMMUNICATION

 

Cause

Configuration changes not taken into account.

Resolution

The SAP Agent needs to be restarted to take the configuration changes with sapgenpse into account.