BC-1758 fix login realms for multitenant, also person shell commands
BC-1758 fix login realms for multitenant, also person shell commands