set authmethod to 'None' for empty user and password (empty authmethod
leads to error)