Fix authentication for server version 1.7.6+