authpolicy: Add common_name to ActiveDirectoryAccountInfo

The field is needed to query the cn entry from Active Directory in
order to anonymize logs. Some Samba commands log the common name, for
instance net ads gpo list logs:
  ads_get_gpo_list: getting GPO list for [CN=common_name,OU=Users,DC=example,DC=com]
In the dependend CL the common name is removed from the logs because
it might contain sensitive data.

CQ-DEPEND=CL:530828

BUG=chromium:732339
TEST=cros_run_unit_tests --board=amd64-generic --packages authpolicy

Change-Id: Ib0b8e0e1b90ec465b38c5f42c9d01ca41a350020
Reviewed-on: https://chromium-review.googlesource.com/533096
Commit-Ready: Lutz Justen <ljusten@chromium.org>
Tested-by: Lutz Justen <ljusten@chromium.org>
Reviewed-by: Lutz Justen <ljusten@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
1 file changed