Principal Name is actually Principal Id for some of our clients
Adding new configuration property to determine whether to allow login with principalId or principalName.
fixes rSmart/issues#420