Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using Java or .NET for custom user authentication


Lesson 4: Testing the authentication

UltraLite comes with a sample Windows client that can initiate synchronization. In this lesson, you run the application against the CustDB consolidated database you started in the previous lesson.


This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a Java class for custom authentication (server-side).

This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using Java or .NET for custom user authentication.

  1. Start the sample application.

    Click Start » Programs » SQL Anywhere 16 » UltraLite » Windows Sample Application.

  2. Enter an invalid employee ID and synchronize.

    In this application, the employee ID is also the MobiLink user name. If the user name does not begin with 128, your logic causes synchronization to fail. Enter a value of 50 for the employee ID and click OK.


An error stating that the authenticate_user script returned 4000 appears in the MobiLink server messages window.

A SQLCODE -1497 synchronization error indicating an invalid user ID or password appears in the UltraLite CustDB Demo window. See Le mot de passe ou l'ID utilisateur est incorrect.


Proceed to Cleaning up.

 See also