Add (untested) support for legacy auth under mgd2