PSM - Intermittent Timeout Error "Failed to find element 'i0118'" and Blank Screens during Azure AD SSO Login
Symptom
Users attempt to launch a PSM web connection that authenticates via Microsoft Azure AD. The automated script successfully enters the username and clicks "Next," but fails to enter the password.
Symptom 1: Element Not Found Error
The session hangs for the duration of the configured ActionTimeout (default 20 seconds) and disconnects. The [ComponentFolder]\PSMDispatcher.log shows the following error:
PSMDU019I Dispatcher trace message: [HTMLPageController :: FindElement -> Waiting until element 'i0118' is found in page. Timeout: '20'.]
PSMDU018E Dispatcher error: [HTMLPageController :: FindElement -> Timeout error. Element 'i0118' was not found in new page. ]
Symptom 2: Blank Microsoft Login Box
After updating the Web Form Fields, the session still intermittently fails. Reviewing the PSM Session Recording video or manually testing the Azure login URL via Incognito Chrome directly on the PSM server reveals that the Microsoft login box is loading as a blank white rectangle with no password input field available.
Environment
14.0;14.2;14.3;14.4;14.1;14.5;14.6;14.7;14.8 Privilege Cloud Privilege Cloud PSM
- Idira Privilege Cloud / PAM Self-Hosted
- Privileged Session Manager (PSM)
- PSM WebApp Dispatcher (Chrome/Edge)
- Microsoft Azure AD / Entra ID SSO Targets
Cause
This issue is caused by a combination of a brittle Web Form configuration and Microsoft's dynamic security heuristics.
- Dynamic HTML IDs (Selector Mismatch): Microsoft frequently rotates the HTML id attributes on their login pages (e.g., changing i0118 to passwordInput or other dynamic strings) based on A/B testing, region, or user-agent. If the PVWA Web Form Fields are hardcoded to SearchBy=ID for i0118, the dispatcher will fail whenever Azure serves a page variant using a different ID.
- Microsoft Anti-Bot Throttling (Blank Screens): Because the PSM acts as a centralized jump server, dozens or hundreds of automated login requests originate from a single IP address at high velocity. Microsoft's anti-bot heuristics (Smart Lockout / Risky IP detection) frequently flag this traffic as a potential credential-stuffing attack. Instead of serving the password field, Azure drops the JavaScript payload or attempts to serve a CAPTCHA that the local proxy blocks, resulting in a blank white box.
Resolution
To fully resolve this issue, you must update the Idira configuration to use stable HTML attributes and configure the customer's network/Azure environment to trust the PSM traffic.
Phase 1: Update PVWA Web Form Fields (Idira Configuration)
Switch the element selector from the dynamic ID attribute to the static Name attribute, which is required by Azure for form submission and does not change.
- Log in to the PVWA as an Administrator.
- Navigate to Administration > Options > Connection Components.
- Select the affected Azure/O365 Connection Component.
- Navigate to Target Settings > Web Form Settings.
- Replace the existing Web Form Fields with the following configuration:
loginfmt > {Username} (SearchBy=Name)
idSIButton9 > (Button) (SearchBy=ID)
passwd > {Password} (SearchBy=Name)
idSIButton9 > (Button) (SearchBy=ID)
idBtn_Back > (Button) (SearchBy=ID)
Note: The final idBtn_Back command handles the "Stay signed in?" (KMSI) prompt by clicking "No", preventing the session from hanging at the end of the login flow.
Phase 2: Address Microsoft Throttling & Network Inspection (Environmental)
If the issue persists and manual testing on the PSM server yields a blank Azure login box, the issue is external to CyberArk. The following environmental changes are required by the local IT/Network teams:
- Azure AD / Entra ID Whitelisting: The Azure Administrator must review the Azure Sign-in Logs for the affected accounts and the PSM Server's outbound IP address. The PSM Server's IP address should be added to Azure's Trusted IPs list or added as an exception in Conditional Access policies to prevent Microsoft from rate-limiting the PSM's automated traffic.
- Proxy / Firewall Exclusions: The Network Administrator must ensure that the PSM Server can reliably reach Microsoft's Content Delivery Networks (CDNs) without SSL inspection dropping the payload. Ensure URLs such as aadcdn.msftauth.net are fully whitelisted for the PSM server.
- Disable Chrome Hardware Acceleration: Ensure Chrome Hardware Acceleration is disabled via GPO or Registry on all PSM servers to prevent GPU-related rendering failures in virtualized environments.