Flicks FAQ: Userlookup


Back to the top of the FAQ

UserLookup

The UserLookup method checks to see if the specified username exists in the AuthentiX database.

Syntax

UserLookup(userName)

Parameters

userName
Specifies the name of the user to check.

Return Values

Returns 0 if the user is found, 1 if the user is not found, 2 if an error occurs.

Example

The following example checks to see if the user Bill Gotes exists.

<% 
usingAuthentiXStandard = true
if (usingAuthentiXStandard) then
Set AuthX = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1") 
else
Set AuthX = Server.CreateObject("AUTHXISP.AuthXOCXCtrl.1") 
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
'protectedDomain = "hostheader.com"
AuthX.SetVirtualDomain protectedDomain, Request.ServerVariables("SCRIPT_NAME")
AuthX.SetVirtualDomainPassword("")
end if
%>
<%= foundUser = AuthX.UserLookup("Bill Gotes") %> 
<% If foundUser = 0 Then %>
He's there all right.
<% Else %>
Nowhere to be found.
<% End If %>

 

Applies To

AuthentiX OCX Component

http://www.flicks.com/authentix/discover/main.htm

Back to the top of the FAQ