|
Back to the top of the FAQ
The AuthentiX OCX component automates access to and manipulation of
the AuthentiX username/password database. The samples
here have been checked against
IIS and ASP.
The best way to get started with this OCX component is to install the
remote admin asp application
see how it works, search for the functions you need, and see how they are used.
File Names
AuthXOCX.ocx
The AuthentiX OCX component. For use with AuthentiX (Standard) or WebQuota. This component should be automatically registered for you on installation.
Or type regsvr32 authxocx.ocx at the
command line to register on your system.
AuthXISP.ocx
The AuthentiX ISP OCX component. For use with AuthentiX ISP or WebQuota ISP. This component should be automatically registered for you on installation.
Or type regsvr32 authxisp.ocx at the
command line to register on your system.
If you get
Syntax
Note if the SetVirtualDomainPassword value is bad, then operations will return error # 14.
Change it here to match the Password button in the Windows GUI.
Be sure to set Authx=nothing at the end of the file to avoid any possibility of memory leaks.
Here it is in text format for easy cut and paste.
Parameters
Registry Entries
None.
Properties
Gets or sets a specified user's password.
Gets or sets a specified user's notes.
Gets or sets a specified user's Expiration date.
Methods
Gets the username of the currently authenticated user.
Checks to see if the user exists.
Adds a user.
Deletes a user.
Modifies a user.
Tells which groups a user is in.
Adds an existing user to an existing group.
Checks to see if the user is a member of the group.
Deletes the user from a group.
Adds an new user to an existing group.
Flush
Commits changes made.
ReRead(UDC, "", "")
Forces a reload of the internal database from the .adb file for that UDC (unique descriptive name).
Additional Methods for Cookie-based Protection
Returns the name of the initial cookie.
Returns the initial cookie value.
Gets the username of the current user when using Cookie-based protection.
Alternative Methods for Cookie-based Protection
Simpler alternative with Site-Wide cookies.
Assistant function used when using CookieSWValue with Advanced ODBC, or By COM
Miscellaneous Methods
Sends an email message.
GetAuthxVersion
Returns a version string.
EventLog(source, message)
Puts the message in the event log, indicating the source, (version 5.2e1 and above).
Encodes a string (password) using a dll.
AuthentiX ISP Specific Methods
Specify which virtual domain subsequent operations apply to.
Specify which virtual domain subsequent operations apply to.
ODBC Specific Methods
Remove a user from the 10 minute ODBC username cache. Example:
WebQuota CMCL Edition Specific Methods
Get a concurrency token or "ticket" that uniquely
identifies the browser.
Clear the concurrency token and reset the internal
concurrency token cache of for this token.
Example: ASP and Cold Fusion
The following example gets the details of a user.
Result of lookup is:
<%= result %>
and here is another for cookie-based login:
Using with .Net/ASPX
The GUID for authxocx is
2c3a2917-e7fa-11d0-bc0f-02608CAD9C7D
So
The GUID for AuthXISP is
2f426b11-094d-11d1-bc1e-02608cad9c7d
So
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||