Fixed issue with automated creation of entityid

EntityID should now make use of the user supplied value for the LDAP
hostname instead of trying to obtain it itself.