Flicks FAQ: Setvirtualdomaindirect


Back to the top of the FAQ

SetVirtualDomainDirect

AuthentiX ISP Only

The SetVirtualDomainDirect method specifies to which virtual domain subsequent operations apply, based on the supplied access codename. A virtual domain's access codename can be found in the virtual domain's Domain Administration dialog (AuthentiX ISP windows GUI).
Note: the CreateObject call is different for AuthentiX and AuthentiX ISP. Type regsvr32 authxisp.ocx at the command line to register on your system.

Syntax

SetVirtualDomainDirect(accessCodename)

Parameters

IPAddress
IP Address of the virtual domain.

Return Values

Returns 0 for success.

Example

The following example sets the domain and queries that domains AuthentiX database to see if a user is a member of the domain's group 'GroupX'.


<% 
Set auth = Server.CreateObject("AUTHXISP.AuthXOCXCtrl.1") 

auth.SetVirtualDomainDirect("!scripts++")

if 0 = auth.GroupHasUser("GroupX", "user1") Then
%>
<h2>
Group has that user.
</h2>
<% Else %>
<h2>
No user with that name in that group.
</h2>
<% End If %>


 

Applies To

AuthentiX OCX Component

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

Back to the top of the FAQ