[Auth] Roll the four apps from Auth 0.3.0 to 0.4.1 (empty-password guard, canonical username) #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What: All four family apps still pin
ZB.MOM.WW.Auth.*0.3.0; the feed carries0.4.0+0.4.1(2026-10-01). Bump each consumer to0.4.1(or record a decision to stay).Why:
0.4.1refuses an empty password insideLdapAuthServicein both bind modes — Active Directory treats an empty-password simple bind as an unauthenticated bind and reports success, so the ServiceAccount-mode re-bind as the user's DN would admit anyone.0.4.1also canonicalisesUsernamefrom the entry'sUserNameAttribute, and0.4.0adds the opt-inBindMode=User(no service account). Today each app guards empty passwords at its own edge, so this is defence in depth, but it matters once the apps move to NAM AD (see the VD03 NAM cutover tracking issue).Current state (verified 2026-11-06 against each origin default branch):
master@d51d35bd: Auth.Abstractions/AspNetCore/Ldap0.3.0(edge guard inOtOpcUaLdapAuthServicerejects blank password)main@488649c: Auth.*0.3.0(edge guard inDashboardAuthenticator)main@0e540291: Auth.* + ApiKeys.SqlServer0.3.0(edge guard inCentralUI/Auth/AuthEndpoints.cs)main@5250e60: Auth.*0.3.0(edge guard inDashboardAuthenticator)zb.mom.ww.auth.ldapversions…0.3.0, 0.4.0, 0.4.10.1.5— tracked separately.)Notes:
0.4.1changes ServiceAccount-mode behaviour for empty passwords (refused instead of passed to the directory) — no consumer should depend on the old behaviour. One PR per sister repo; this issue tracks the family rollout.Source:
CLAUDE.md(Component normalization → Auth row: "the four apps still pin 0.3.0");ZB.MOM.WW.Auth/CLAUDE.mdRelated: scadaproj commits
e3d146a,b0582ebAll four apps bumped ZB.MOM.WW.Auth.* 0.3.0 → 0.4.1 (published feed version; BindMode stays ServiceAccount, no config change, app edge guards untouched):
1ecd01d3(Directory.Packages.props, 3 refs) — Release 0 warnings; AdminUI 1962, Host 241, OpcUaServer 1026, Security 10437fcd296(5 refs incl. ApiKeys.SqlServer) — every non-Playwright test project green (Security 199, ManagementService 775, CentralUI 1537, Host 666, IntegrationTests 119 …)ace12f81(Server + IntegrationTests csproj) — NonWindows slnx build; MxGateway.Tests 1417 (+6 skip)0d06483(Server csproj) — Tests 1286 (+54 skip), Client 182, Historian.Client 191No API breaks; no test asserted old casing/empty-password behaviour. Vulnerability scan clean except the known test-only AngleSharp NU1902 in ScadaBridge CentralUI.Tests.
Not done here: deploying (wonder boxes still run 0.3.0 builds) and a live AD check of the username canonicalisation — both ride the NAM cutover #6. Index updated (
5c207d1).