The Authenticate method is called by AuthentiX when
the By COM option is set.
Authenticate should return
return 1 for success or an error code for authentication failure.
Visual C++ Syntax
| short CAuthCOMCtrl::Authenticate( |
long FAR* verify,
BSTR FAR* username, BSTR FAR* password, BSTR FAR* ipAddress, BSTR FAR* userAgent, BSTR FAR* referrer, BSTR FAR* scriptName, BSTR FAR* bstrUserString, BSTR FAR* bstrqueryString, BSTR FAR* bstrReserved2, long FAR* longReserved1, long FAR* longReserved2); |
Visual Basic Syntax
| Public Function Authenticate( |
verifyArg As Long, _
username As String, _ password As String, _ ipAddress As String, _ userAgent As String, _ referrer As String, _ scriptName As String, _ UserString As String, _ bstrqueryString As String, _ bstrReserved2 As String, _ longReserved1 As Long, _ longReserved2 As Long) _ As Integer |
Parameters
Return Values
Return 1 for success
Return 3 if user not found
Return 6 if user found and wrong password
Return 9 if user found and expired
#define AUTHX_DENIED_EMPTY -2
#define AUTHX_DENIED_UNKNOWN_USER -3
#define AUTHX_DENIED_BAD_PASSWORD -6
#define AUTHX_DENIED_REFERRAL_BLOCK -4
#define AUTHX_DENIED_MULTI_BLOCKED -5
#define AUTHX_DENIED_EXPIRED -7
#define AUTHX_DENIED_ODBC_EXPIRED -9
#define AUTHX_DENIED_COOKIE_TIMED_OUT -10
#define AUTHX_DENIED_IP_BLOCK -11
#define AUTHX_DENIED_KBYTES -12
#define AUTHX_DENIED_REQUESTS -13
#define AUTHX_DENIED_SEQ_LOGINS -14
#define AUTHX_DENIED_FOOTPRINT -15
#define AUTHX_DENIED_DN_BLOCK -16
#define AUTHX_DENIED_UA_BLOCK -17
#define AUTHX_DENIED_DAP -18
#define AUTHX_DENIED_TIMED_OUT -19
If you return your own codes, please use the range 901-999.
Example
Example projects for VC++ and VB are included with the product in the installation directory.
Applies To