Authentication problems depending on connection type