CPM - SAP Plugin Fails with "00024error during logon" or "CALL_FUNCTION_SIGNON_INCOMPL" When Connecting via SNC
Symptom
When attempting to verify or change credentials on an SAP target system using Secure Network Communications (SNC) or Single Sign-On (SSO) certificate authentication, the CPM operation fails.
In CPM debug logs (`PMSapDebug.log` or third-party invoker logs), one of the following error messages is reported:
===
00024error during logon
RETURN CODE: DEALLOCATED_NORMAL
===
or
===
RfcCommunicationException: 00024error during logon
RfcAbapException: CALL_FUNCTION_SIGNON_INCOMPL - Logon data incomplete.
===
or in SAP GUI sessions:
===
00024rabax during sapgui logon (Message No. SR053)
===
Environment
12.6;14.0;14.2;14.6;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)
SAP NetWeaver,
SAP S/4HANA (On-Premises, RISE with SAP, SAP Cloud Appliance Library)
Cause
This issue typically stems from two related mechanisms in SAP kernel authentication:
### 1. Error Masking (login/quiet_mode = 1)
By default, SAP production systems and cloud appliances operate with profile parameter login/quiet_mode = 1 (per SAP Note 3227692). When quiet mode is active, the SAP kernel suppresses diagnostic error messages for all failed RFC logons to prevent user enumeration and credential discovery. Regardless of whether the actual failure is caused by an expired certificate, missing role, locked user, or SNC identity mismatch, the client receives only the generic string 00024error during logon.
### 2. The SNC0 (System ACL) vs USRACL (User ACL) Trap (SAP Note 1028503)
When configuring SNC, administrators frequently add the CPM client certificate's Distinguished Name (e.g., p:CN=CPMClientCertificate) into transaction **SNC0** (SNCSYSACL - System Access Control List).
- **SNC0** is strictly reserved for **trusted system-to-system RFC links** between SAP application servers.
- When an incoming connection's SNC identity matches an entry in SNC0, the SAP kernel classifies the connection as a *server-to-server connection*.
- Under SAP Note 1028503, user SNC authentication and logon tickets are **explicitly forbidden** for connections matching SNC0. If the client attempts to authenticate without providing an explicit password, the kernel immediately terminates the session with CALL_FUNCTION_SIGNON_INCOMPL (Return code 9 / SIGNON_INCOMPLETE).
Resolution
## Diagnostic Steps
### Step 1: Unmask the Real SAP Error
To see the exact root cause in CPM logs or SAP transaction ST22:
1. Log on to the target SAP system via SAP GUI as an administrator (SAP* or user with S_RZL_ADM).
2. Run transaction **RZ10** (Edit Profiles).
3. Select the active Instance Profile (or DEFAULT profile) -> Extended maintenance -> Change.
4. Set parameter:
===
login/quiet_mode = 0
===
5. Save the profile, activate it, and restart the SAP application server instance.
6. Open transaction **RZ11** (Maintain Profile Parameters) and dynamically set:
===
rfc/signon_error_log = 1
===
*(Value "1" forces generation of short dumps in "ST22" for external RFC client logon errors without requiring a restart).*
7. Re-run the CPM Verify/Change task.
8. In SAP GUI, open transaction **ST22** (ABAP Dump Analysis). If CALL_FUNCTION_SIGNON_INCOMPL appears, proceed to the Resolution below.
### Step 2: Automated Diagnostic Scripts
CyberArk provides standalone diagnostic scripts to rapidly isolate SNC configuration issues:
- Get-SapSncConfigSnapshot.ps1: Takes a read-only snapshot of all SAP SNC tables (SNCSYSACL, USRACLEXT, RFCDESSECU, TXCOMSECU, TSP0U, and USRACL) to examine system and user mapping states:
In powershell, run the command below:
===
.\Get-SapSncConfigSnapshot.ps1 -SapNcoPath "C:\CyberArk\Password Manager\Vault\SAP_SNC" -AsHost "<SAP_HOST>"
===
- Test-SncSsoEliminationMatrix.ps1: Executes controlled connection variants (Baseline, Bogus Identity, Case Mismatch, Explicit User Hint) to pinpoint whether a failure is caused by SNC crypto negotiation, client identity trapping, or user authorization:
In powershell, run the command below:
===
.\Test-SncSsoEliminationMatrix.ps1 -SapNcoPath "C:\CyberArk\Password Manager\Vault\SAP_SNC" -Variants Baseline,ExplicitUserHint
===
## Resolution
### 1. Correct Transaction SNC0 (SNCSYSACL) Configuration
Ensure the CPM client certificate identity is **NOT** listed in transaction SNC0:
1. In SAP GUI, run transaction **SNC0**.
2. Locate any entries where the **SNC name** matches the CPM client certificate (e.g. p:CN=CPM...).
3. **Delete** that entry.
4. Maintain **ONLY** the standard system wildcard entry in SNC0:
- **System ID:** <Target_SID> (or "*")
- **SNC name:** "*"
- **RFC active:** Checked "[X]"
- **CPIC active:** Checked "[X]"
- **DIAG, certificate, ext. ID:** **UNCHECKED** "[ ]" (Checking these forces external identity tables USREXTID and breaks standard RFC logon).
### 2. Configure User SNC Mapping in SU01 (USRACL)
Map the certificate Distinguished Name directly to the target SAP user account:
1. In SAP GUI, run transaction **SU01**.
2. Enter the target username (e.g. CYBERARK_CPM) and select **Change**.
3. Navigate to the **SNC** tab.
4. Ensure **SNC name** contains the exact Distinguished Name from the CPM client certificate:
===
p:CN=CPMClientCertificate, OU=Security, O=Company, C=US
===
*(Note: The "p:" prefix and exact case sensitivity are mandatory per SAP Note 2997758).*
5. Ensure the checkbox **Allow password logon for user** is configured according to organizational policy.
6. Save the user.
### 3. Verify Canonical Name Resolution with Report `RSSNCCHK`
Run transaction **SNC4** (or report RSSNCCHK in SE38) to verify that the SNC name resolves correctly against the SAP Security Library (SAPCryptolib) without canonical syntax mismatches.
---
## Related SAP Notes & Knowledge Base Articles
- SAP Note 1028503: *SNC-secured RFC connection: Logon ticket is ignored (CALL_FUNCTION_SIGNON_INCOMPL)*
- SAP Note 3227692: *00024error during logon (login/quiet_mode error masking)*
- SAP Note 320991: *Error codes during logon (master list of numeric logon return codes and DyISigni trace)*
- SAP Note 91980: *Missing output of RFC short dump for logon error (rfc/signon_error_log)*
- SAP Note 2997758: *SSO error "No user exists with SNC name" when case differs*