Construct realm and ldap dn from domain

Change-Id: I94fc5627af6fe0f9dbb2f508823bb782e555eec7