How it works in the cloud
- void UserCloudPolicyManagerChromeOS::OnStoreLoaded calls
chromeos::ChromeUserManager::Get()->SetUserAffiliation
- Compares user_affiliation_ids() from user policy to device_affiliation_ids() from device policy.
- If intersection is non-empty --> affiliated!
Master Plan
- Use user account to query device information, if it works --> affiliated!
- In device policy, store some string in PolicyData.device_affiliation_ids, e.g. "ad_affiliation_marker"
- In user policy, if affiliated, store the same, else store nothing
- Update BrowserPolicyConnectorChromeOS::GetDeviceAffiliationIDs() to work for AD
- Call SetUserAffiliation from policy manager
Comment 1 by bugdroid1@chromium.org
, Aug 4