<%
' change this value if you are using AuthentiX ISP
usingAuthentiXStandard = true
if (usingAuthentiXStandard) then										
axCtrlString = "AUTHXOCX.AuthXOCXCtrl.1"
Set auth = Server.CreateObject(axCtrlString) 
else
axCtrlString = "AUTHXISP.AuthXOCXCtrl.1"
Set auth = Server.CreateObject(axCtrlString) 
' use this line to automatically set the domain to be the requesting IP
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
' use this alternative if you are protecting by host header,  
' set protectedDomain to be -your- host header
'protectedDomain = "hostheader.com"
auth.SetVirtualDomain protectedDomain, Request.ServerVariables("SCRIPT_NAME")
' check with your isp for your password,  initially it is empty
auth.SetVirtualDomainPassword("")
end if

l = Request.ServerVariables("LOCAL_ADDR")
s = Request.ServerVariables("SCRIPT_NAME")
h = Request.ServerVariables("HTTP_AUTHORIZATION")
currentUser = auth.
CurrentUserName(l, s, h)

if (0 = auth.GroupHasUser("Group1", currentUser)) Then
	response.Redirect("/Main/Group1")
elseif (0 = auth.GroupHasUser("Group2", currentUser)) Then
	response.Redirect("/Main/Group2")
elseif (0 = auth.GroupHasUser("Group3", currentUser)) Then
	response.Redirect("/Main/Group3")
else
	response.Write("Error - user not in any Group!")
	response.End
End If
%>