CPM/SRS - winRc=1272: 'You can't access this shared folder because your organization's security policies block unauthenticated guest access.'
Symptom
When CPM/SRS tries to manage a Windows account, a winRc=1272 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: 1272.
- .log:
- Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network. (winRc=1272).
- pm.log:
- Code: 2101, Error: Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network. (winRc=1272).
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 a mismatch of enabled SMB versions between the CPM/SRS connector and target device. Usually, the situation is that the CPM's/SRS connector's enabled SMB versions are newer than the versions enabled on the target.
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=1272 Error Definition:
ERROR_CAN_NOT_CONNECT_TO_SHARE
1272 (0x4F8)
You can't access this shared folder because your organization's security policies block unauthenticated guest access.
Resolution
To resolve this issue, ensure that the CPM/SRS connector and target device have matching SMB versions enabled. It is not recommended to make alterations to the SMB versions on the CPM/SRS connector due to the fact that this could cause issues with other target devices. Make any changes on the target device in question.
You can use Powershell to detect whether or not a version of SMB is enabled on a device, as well as enable or disable a version.
SMBv1
- Detect:
- Get-SmbServerConfiguration | Select EnableSMB1Protocol
- Disable:
- Set-SmbServerConfiguration -EnableSMB1Protocol $false
- Enable:
- Set-SmbServerConfiguration -EnableSMB1Protocol $true
SMB v2/v3
- Detect:
- Get-SmbServerConfiguration | Select EnableSMB2Protocol
- Disable:
- Set-SmbServerConfiguration -EnableSMB2Protocol $false
- Enable:
- Set-SmbServerConfiguration -EnableSMB2Protocol $true
Note: You do not have to restart the device after running the Set-SmbServerConfiguration cmdlet.
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