cancel
Showing results for 
Search instead for 
Did you mean: 

SAP NCO RFC connection with SSO - Partnername error

niamor
Explorer
0 Kudos

Hi all,

We were used to making a SSO SNC RFC connection by means of the SAP NCO.

However, out of a sudden, we get the below error, leading me to believe that there is an error related to the Partner name "p/secude:CN=SID/snc.DOMAIN.com@DOMAIN.COM". This partnername was specified automatically by the sap nco when using this parameter string:

NAME=
CLIENT=
MSHOST=
SYSNR=
GROUP=
SNC_MODE=1
SNC_SSO=1
SYSID=

Note that we are not making use of any library dlls.

Many thanks

=====

Error type: SAP.Middleware.Connector.RfcCommunicationException

Message:

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR SNCERR_UNKNOWN_MECH

SncPImportPrName() parsing error

name="p/secude:CN=SID/snc.DOMAIN.com@DOMAIN.COM"

TIME

RELEASE 720

COMPONENT SNC (Secure Network Communication)

VERSION 6

RC -38

MODULE sncxxall.c

LINE 2213

DETAIL SncPSetNewName

COUNTER 2

Source: sapnco_utils

Data: System.Collections.ListDictionaryInternal

Stacktrace: at SAP.Middleware.Connector.CpicConnection.ConnectAsClient(Dictionary`2 options)

at SAP.Middleware.Connector.RfcConnection.ConnectAsClient(RfcDestination destination)

at SAP.Middleware.Connector.RfcConnectionPool..ctor(RfcDestination destination, Boolean forRepositoryCalls)

at SAP.Middleware.Connector.RfcConnectionPool.GetPool(RfcDestination destination, Boolean forRepository, Boolean create)

at SAP.Middleware.Connector.RfcDestination.GetClient(Boolean forRepository)

at SAP.Middleware.Connector.RfcDestination.SetAttributeValues(RfcSystemAttributes attribs)

at SAP.Middleware.Connector.RfcDestination.get_SystemAttributes()

at SAP.Middleware.Connector.RfcDestination.get_Repository()

at bgWorker_DoWork(Object sender, DoWorkEventArgs e) in :line 168

at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Accepted Solutions (0)

Answers (1)

Answers (1)

niamor
Explorer
0 Kudos

I've been able to solve the issue.

Please find the details below.

Cause

No SNC Library path was included under “RfcConfigParameters.SncLibraryPath”, while both a Kerberos .dll as well as a Secude .dll (sapcrypto.dll) were saved on the computer. The NCO assumed that the Kerberos one should be used (resulting in the parsing error), while sapcrypto.dll is the right one.

How identified

  • Fetched appropriate connection parameters using SAP GUI trace (SAP GUI configuration.exe > Traces > SAP GUI traces)
  • Generated SAP Logon Trace while logging on via the SAP GUI (SAP GUI configuration.exe > Traces > SAP Logon traces)
  • Enabled tracing in the C# code;
  • * oRfcTrace.DefaultTraceLevel = 1
  • * oRfcTrace.TraceDirectory = “Name of directory”
  • * oGeneralConfiguration.CPICTraceLevel = 3
  • Compared trace files