[PATCH] make authtype a config option