CPM/SRS - winRc=1327: 'Account restrictions are preventing this user from signing in.'

CPM/SRS - winRc=1327: 'Account restrictions are preventing this user from signing in.'

391
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 13:02 PM


Symptom



When CPM/SRS tries to manage a Windows account, a winRc=1327 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: 1327.
  • .log:
    • Error in verifypass to user <domain>\<username> on domain <address>(\\<address>). Reason: Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced. (winRc=1327).
  • pm.log:
    • Code: 2101, Error: Error in verifypass to user <domain>\<username> on domain <address>(\\<address>). Reason: Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced. (winRc=1327).


Environment


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


CPM/SRS
Windows Target
 



Cause



There are certain restrictions on the account that is preventing it from logging in successfully.  The restrictions could be at the local security policy level or via a domain GPO.


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=1327 Error Definition:
ERROR_ACCOUNT_RESTRICTION
1327 (0x52F)
Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.

 



Resolution



Possible restrictions applied to the account and how to change them:
 

Restriction: "Blank" password set on the account.
Cause: Security policy "Accounts: Limit local account use of blank passwords to console logon only" is enabled.
Resolution: Disable the policy, or set a password for the account.

Restriction: Mismatched LANMAN authentication settings between the CPM/SRS connector and target.
Cause: Security policy "Network security: LAN Manager authentication level" settings do not align.
Resolution: Adjust the policy settings so that each device has at least one response type in common.  Note, it is preferable to make this change on the target device, as doing so on the CPM/SRS connector could affect connectivity with other devices.

Restriction: Logon hours are enforced.
Cause: Security policy "Microsoft network server: Disconnect clients when logon hours expire" is enabled.
Resolution: Disable the policy, or alter the logon hours set on the account.  Logon hours can be controlled through ADUC for domain accounts and via the net user <username> /times:<days,times> command for local accounts.

Additionally, it is possible for winRc=1327 to be generated when the account is locked out, disabled, and/or the wrong password is being used.


Resources:
How does CPM Manage Windows Accounts Passwords

Windows System Error Codes
Windows Network Management Error Codes
Windows Routing and Remote Access Error Codes
Windows Sockets Error Codes
 


Additional Information


Details

SYMPTOM:
When trying to change a Windows password, you get the following error:

CACPM250E Operation on remote machine on password object Safe: <Safe>, Folder: <Folder>, Object: <Object> failed (try #x) with the following error: Error in changepass to user <User> on domain (Domain). (winRc=1327) Logon failure: user account restriction.  Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.

PROBLEM:
There is a restrictive security setting on the target Windows computer.  It could be a "User Rights Assignment" or a "Security Option" defined in the OS's "Local Security settings".

SOLUTION:
The below list has 2 possible target node security settings that can be changed to correct the issue.  You can access a full list of the "Local Security Settings" via Start menu > Run..., type "secpol.msc" and Enter button.

 
  1. User itself does not have permissions to change its own password.  In other words, the Security Policy of your Windows machine is denying the change.  
  2. The "LAN Manager Authentication level" on the CPM Server is not compatible to that set on the target Windows computer.  Check the "Local Security Settings" (secpol.msc) by navigating to Local Policies, Security Options, and the "Network security: LAN Manager authentication level".

Additional Information:
Windows System Error Codes such as "WinRC=1327" are sent from the target Windows OS. You can see descriptions at the following Microsoft website.
http://msdn.microsoft.com/en-us/library/ms681381%28v=VS.85%29.aspx



Actions
  • Print
  • Copy Link

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