CPM/SRS - winRc=1396: 'The target account name is incorrect.'

CPM/SRS - winRc=1396: 'The target account name is incorrect.'

190
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:56 PM


Symptom



When CPM/SRS tries to manage a Windows account, a winRc=1396 error is returned.  Depending on which log is viewed, the error may look like the below:

 

  • .Debug.Log:
    • Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 1396.
  • .log:
    • Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The target account name is incorrect. (winRc=1396).
  • pm.log:
    • Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The target account name is incorrect. (winRc=1396).

Additionally, the Windows Event Viewer System log may show an error similar to the below:

  • The kerberos client received a KRB_AP_ERR_MODIFIED error from the server <address2$>.  The target name used was cifs/<address1><domainname>. This indicates that the password used to encrypt the kerberos service ticket is different than that on the target server. Commonly, this is due to identically named  machine accounts in the target realm (<domainname>), and the client realm.   Please contact your system administrator.

 



Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)


CPM/SRS
Windows Target
 



Cause



This error is caused by DNS synchronization issues on the CPM server/SRS connector.  For example, if the DNS entry on the CPM server/SRS connector for <address1> incorrectly points to <address2>, when CPM/SRS attempts to verify an account that resides on <address1>, the action will fail.  This failed verify action will trigger a reconcile action.  However, the reconcile will also fail because the Kerberos ticket that was obtained to log onto <address1> will be incorrectly presented to <address2>, and <address2> will reject it.

To check for DNS sync issues on the CPM server/SRS connector, take the following steps:

  1. Ping both machines using their name.  The command output will contain the same IP address for both machines returned by DNS:

    C:\> ping <address1>
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    ...
    C:\>ping <address2>
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123

     
  2. Use nbtstat to check whether Netbios has incorrect address defined:

    C:\>nbtstat -a 1.1.1.1
    <address2>    <00>  UNIQUE      Registered
    <address2>    <20>  UNIQUE      Registered


For more information on this issue, please review the following documentation from Microsoft: MS KB 558115


winRc stands for Windows Return Code.  Windows Return Codes are generated by Windows systems.  The return code shown in the CPM/sRS logs and PVWA UI is from the target Windows machine and not from CPM/SRS.

winRc=1396 Error Definition:
ERROR_WRONG_TARGET_NAME
1396 (0x574)
The target account name is incorrect.

 



Resolution



There are several potential ways to troubleshoot and resolve DNS synchronization issues:
  • Disable client DNS caching on the CPM server/SRS connector.
  • Request that the TTL for DNS records that are mapped to hosts using DHCP be set to 0 seconds.
  • Involve your network/AD teams to assist in further troubleshooting.


Additional Information


Details

SYMPTOM:
Windows error log contains KRB_AP_ERR_MODIFIED (Event ID 4) errors. Full error message looks like the one below:

The kerberos client received a KRB_AP_ERR_MODIFIED error from the server HOST2$.  The target name used was cifs/HOST1.domain.com. This indicates that the password used to encrypt the kerberos service ticket is different than that on the target server. Commonly, this is due to identically named  machine accounts in the target realm (domain.com), and the client realm.   Please contact your system administrator.


Also, at the same time in pm_error.log there will be following entries:

dd/mm/yy hh:mm:cc [00f4] Error in prereconcilepass to user HOST1\username on domain HOST1(\\HOST1). Reason: Logon Failure: The target account name is incorrect. (winRc=1396). Reconcile account details - Safe: PassM Service Accounts, Folder: Root, Object: Operating System-Windows-host1-username


PROBLEM:
In addition to description provided in Microsoft Knowledge Base at http://support.microsoft.com/kb/558115 these errors may indicate that DNS resolves machine names under CPM management to incorrect IP addresses. In the example above the DNS entry for host1 server points to host2. When CPM attempts to verify  account on such a machine, it receives an error indicating incorrect user name or password. This error triggers reconciliation by CPM, however once Kerberos ticket that was obtained to log into one machine is presented to a different one due to DNS synchronization problem, it is rejected by that machine as the keys do not match.

DNS sync issues can be confirmed by running the following:

 
  1. Ping both machines using their name. The command output will contain the same IP address for both machines returned by DNS
    C:\> ping host1
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    ...
    C:\>ping host2
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
    Reply from 1.1.1.1: bytes=32 time=10ms TTL=123
  2. Confirm that Netbios has the other server name defined by running the following command:

    C:\>nbtstat -a 1.1.1.1

    HOST2    <00>  UNIQUE      Registered
    HOST2    <20>  UNIQUE      Registered

     
SOLUTION:
There are several potential ways to address DNS synchronization issues:
  • Disable client DNS Caching on the CPM server.
  • Request that TTL for records that are mapped to hosts that use DHCP be set to 0.
  • Request network/AD administrators to troubleshoot DNS sync issue.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001U5hCAE&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail