A common error when using PAS is that no mapping exists between the user’s external ID and his or her user ID for the SAP system. The following sample trace file for the AGate shows the error message produced when the SAP user ID could not be found in the external user ID mapping table (error code 41).
AGate Trace File Information When the User ID Mapping Does not Exist
[sapextauth, 2561]: *E* sapextauth: Error in Rfc Login: connect string was: (TRACE=0 SNC_MODE SNC_QOP=8 SNC_MYNAME="p:CN=AGATE, O=MYCOMPANY,
C=US" SNC_PARTNERNAME="p:CN=ABC, O=MYCOMPANY, C=US" SNC_LIB=
"C:\Program Files\SAP\ITS\2.0\programs\sapcrypto.dll" CLIENT=000
LANG="en" ASHOST="host123.mycompany.com" SYSNR=18 GETSSO2=1
EXTIDTYPE="NT" EXTIDDATA="MYDOMAIN\ALICE")
[sapextauth, 2562]: *E* sapextauth: Error in Rfc Login: System returned:
"You are not authorized to logon to the target system (error code
41)."
[sapextauth, 1567]: *E* sapextauth: Could not get ticket. PAS return code
= 4.
For a complete list of the possible error codes, see SAP Note 320991.