merged from -r693694 (MRM-911: check first if guest is enabled for the repository before failing the authentication) 1.1.x branch