Fix equality check of enrollment domains
During re-enrollment, if install attributes are present, we check that the domain to re-enroll to matches the one in install attributes. Only compare install attributes domain to the login-given domain if it is non-empty, i.e. if a gaia login took place. If no login happened, e.g. during auto re-enrollment, the domain is provided by the server and stored in the enrollment config. Policy validation will fail if the server provided domain is different from the one in install attributes. The check edited in this CL is not necessary in this case. Bug: 1158573 Change-Id: I4c65c5d91f237a24d02edfac6aec6c5f31a6eeb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598852Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Reviewed-by:
Pavol Marko <pmarko@chromium.org> Commit-Queue: Miriam Polzer <mpolzer@google.com> Cr-Commit-Position: refs/heads/master@{#842452}
Showing
Please register or sign in to comment