Explainer
Why does WinCC OA 3.21 require login framework changes?
Short answer
In WinCC OA 3.21 the login panel initialise script is no longer the supported place for login customization. Move Kerberos and Windows user detection, SSO and auto-login routes, User Management datapoint maintenance and login-UI control into the documented login framework and a controlled project initialization step, keep Para MM handling with the display configuration, and leave the initialise script with presentation work only.
On this page
- What changed in 3.21
- Authentication and panel initialization are two lifecycles
- Where each of the seven blocks belongs
- Sorting the seven initialise-script blocks of a 3.15 project
- Moving the logic without losing a route
- Proving each route after the move
- Hidden login controls are not authorization
- Questions asked
A login panel that worked on 3.12, 3.15 or 3.18 stops working on 3.21 for a structural reason, not a bug: the initialise script of the login panel is no longer the supported place for login logic. In newer WinCC OA versions, changes to login panel functionality belong in the login framework, which the installed documentation describes in its Login Framework basics section and its User Administration chapter. The Kerberos or Windows user detection, the SSO and remote-UI auto-login routes, the User Management datapoint creation and the enable/disable logic built into the panel script have to move to documented extension points. This article maps each of the seven typical blocks to its new home, works through the split for a 3.15-era project, and gives the checks that prove each login route after the move.
What changed in 3.21 #
Projects built on WinCC OA 3.12, 3.15 and partly 3.18 commonly extended the login panel's initialise script with project logic: Windows or Kerberos user detection, single sign-on, remote-UI auto login on the same host, User Management datapoint creation and upgrade, Para MM multi-monitor handling, configuration-based auto login and custom enable/disable of login elements. In 3.21 that script is no longer the supported hook. The documented answer is to change login panel functionality through the login framework, covered in the installed documentation's Login Framework basics section and User Administration chapter.
Two consequences follow. First, the initialise script still runs and still prepares the displayed panel, but login decisions written into it no longer participate in authentication the way they did. Second, read the interface definitions in the installed documentation before porting anything: extension points are defined by their inputs and their position in the authentication sequence, and a block ported by its position in the old script loses both. Classify the symptom before changing code, because a panel that appears correctly does not prove authentication succeeded, and a missing auto login does not prove the panel failed to initialize.
Authentication and panel initialization are two lifecycles #
Panel initialization belongs to the presentation lifecycle: it builds and displays an interface. Authentication belongs to a second lifecycle: it acquires an identity, verifies it and transitions into an application session. When one script drives both, behavior depends on whether, when and how a particular panel opens, which is exactly why a script that worked on 3.15 behaves differently on 3.21.
Three ordering rules survive the migration unchanged. Identity detection must complete before any decision that needs the identity. Session-dependent display actions need an established session, not a drawn panel. Project data upgrades need a controlled execution path, because whatever login depends on must already exist. That ordering dependency is not specific to one SCADA platform; the article on resolving client auto-login that fails before data-type initialization finishes describes the same failure shape on a different system.
Where each of the seven blocks belongs #
| Legacy initialise-script block | New home in 3.21 |
|---|---|
| Kerberos / Windows user detection | Login framework |
| SSO auto login | Login framework |
| Remote UI auto login on same host | Login framework |
| Configuration-based auto login | Login framework |
| User Management datapoint creation and upgrade | Controlled project initialization or maintenance procedure |
| Multi-monitor handling (Para MM) | Display and panel configuration |
| Custom enable/disable of login UI elements | UI layer, driven by documented authentication state transitions |
Read the table as a rule for purpose, not position. The four login routes move together because they all decide identity and session. The datapoint work moves out of panel code entirely. Para MM stays display configuration. The enable/disable logic stays visual, but its trigger becomes a documented authentication state change rather than a line inside the old script.
Sorting the seven initialise-script blocks of a 3.15 project #
The inputs are the blocks the project carries: the four login routes, the datapoint maintenance, the Para MM handling and the enable/disable logic, each with its purpose as recorded in the project. The rule for sorting is the 3.21 split: a block that decides an identity or a session goes to the login framework; a block that creates or upgrades project data goes to a controlled initialization procedure; a block that arranges displays goes to display configuration; a block that only changes what the operator sees goes to the UI layer, triggered by framework events.
The arithmetic: framework destinations take the Kerberos/Windows detection, the SSO auto login, the remote-UI auto login and the configuration-based auto login, that is 4 blocks. The controlled initialization takes the User Management datapoint creation and upgrade, 1 block. Display configuration takes the Para MM handling, 1 block. The event-driven UI layer takes the enable/disable logic, 1 block. Total sorted: 4 + 1 + 1 + 1 = 7 of the 7 blocks. Login decisions left in the initialise script: 7 − 7 = 0.
The result is that every block has a documented home and the initialise script keeps zero login decisions. The decision it leads to: after this split, a login failure on 3.21 cannot be an initialise-script problem, so diagnose the login framework configuration first, then the project data the routes depend on, then presentation. If the framework baseline alone cannot log a test user in, fix that before adding any project extension.
Moving the logic without losing a route #
- Preserve a recoverable copy of the project with its existing login customization and configuration before editing anything, and work where a documented administrative recovery route exists.
- Establish the framework baseline: verify the documented login behavior on 3.21 with a plain test user before adding project extensions, and resolve baseline authentication or user-configuration problems separately from custom logic.
- Map each block to a documented extension point by its inputs and its position in the authentication sequence, reading the actual interface definitions in the installed documentation rather than reconstructing them from the old script.
- Relocate the User Management datapoint creation and upgrade into a controlled procedure that is safe to repeat and reports incomplete updates before any login route depends on the data.
- Reintroduce the login routes one at a time, Kerberos/Windows detection, SSO, remote-UI and configuration-based, and define the precedence between them plus the response when an identity is unavailable or rejected.
- Reapply the enable/disable logic at the authentication state transitions the framework documents, and put Para MM handling where the session and display context are available.
- Delete the migrated login logic from the old initialise script so no route executes twice, leaving only genuine presentation work.
Proving each route after the move #
Test on an isolated bench with verified test identities, and repeat the checks for every enabled route. For a successful login, confirm that the intended application user becomes active and holds the permissions the screens require. For a rejected identity, confirm the defined failure response and that no competing login attempt runs. Compare local and remote UI launches separately, because they use different identity sources. Record the detected Windows account and the active application user at every step, and keep passwords and tokens out of all diagnostic output.
Automatic-login precedence needs its own check: where SSO, configuration-based login and manual entry are all possible, confirm that exactly one route is selected with a defined fallback. A login that fails immediately after a version jump usually traces to identity mapping or configuration rather than panel code, the same pattern as the article on fixing a WinCC 5.1 to 6.2 migration that will not log in.
Hidden login controls are not authorization #
Hiding or disabling login UI elements is presentation behavior, not enforcement. Even when auto login removes the need for visible credential entry, permission decisions stay in the project's user management and authorization mechanisms, so a user who reaches a screen by an unexpected route still hits the same permission checks. When you accept a login route, verify the active user's authorization scope, not the visibility of a button.
Questions asked
Can I patch my 3.15 login panel script to run under 3.21?
No. The documented integration point changed: changes to login panel functionality in newer versions belong in the login framework, described in the Login Framework basics section and the User Administration chapter of the installed documentation. Keep the panel script for presentation only, and move identity detection, auto-login routes and user-data maintenance to the framework's documented extension points after reading their actual interfaces.
Where should User Management datapoint creation and upgrade run?
In a controlled project initialization or maintenance procedure, not inside a panel-opening event. Make the step safe to repeat, verify that all required datapoints exist before any login route depends on them, and report incomplete updates rather than silently continuing. An upgrade that runs only when a particular panel happens to open fails on the next project that opens a different panel first.
Does remote UI auto login on the same host still work?
Yes, but as a documented login-framework route with an explicit rule and a defined precedence, not as an inference the panel script draws from where the UI happens to run. Record the client location, the identity source it uses and the resulting session user, and test local and remote launches separately because they follow different identity paths.
What proves a login actually worked after the migration?
The intended application user is active and holds the authorization the screens require, not merely that the login panel disappeared. Check each enabled route separately with an authorized test identity, compare the detected Windows account against the active application user, and confirm the configured monitor arrangement matches where panels actually open. A panel that draws correctly proves nothing about authentication.