fixing transposed attributes

for domain and active directory domain which results in failed
configuration of the host.