ONC: OpenVPN: Make Password and OTP recommended if auth type unset
In ONC, if a policy provided network configuration does not explicitly list a property as 'Recommended', the user is not able to set the property. In Google's OpenVPN policy configuration (and potentially others), UserAuthenticationType is not explicitly set, and OTP is not included in the Recommended list, even though it needs to be provided by the user. To work around this technically incorrect policy configuration (and not break existing policies with the new UI), when UserAuthenticationType is not explicitly set in the policy, this change adds Password and OTP to the Recommended list so that they can be provided by the UI. This also adds a test that catches the failure case and passes with the new changes. Bug: 817617 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: If22f34e8943a2b82cf8becc93f257413c3cdcf92 Reviewed-on: https://chromium-review.googlesource.com/961365 Commit-Queue: Steven Bennetts <stevenjb@chromium.org> Reviewed-by:Toni Barzic <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#543171}
Showing
Please register or sign in to comment