add maybe_add_auth for ftp as well