Implementing local realm authentication on the ProxySG or Advanced Secure Gateway