This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a Java or .NET class for custom authentication (server-side).
In this lesson, you run the MobiLink server with the -sl option to specify a set of directories to search for compiled files.
Connect to the CustDB sample database and load your Java class or .NET assembly on the mlsrv12 command line.
Replace c:\MLauth with the location of your source files.
For Java, run the following command:
mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -o serverOut.txt -v+ -sl java(-cp c:\MLauth) |
For .NET, run the following command:
mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -o serverOut.txt -v+ -sl dnet(-MLAutoLoadPath=c:\MLauth) |
The MobiLinkAuth method is executed when the authenticate_user synchronization event occurs.
Proceed to Lesson 4: Testing the authentication.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |