HIVE-4233-relogin - check if security enabled first