UltraLite User's Guide
Developing UltraLite Applications
Adding user authentication to your application
Although UltraLite user IDs and MobiLink user authentication mechanisms are separate, you may wish to provide your end users with a single user ID and password that provides both MobiLink and UltraLite user authentication. To share user IDs and passwords, store them in variables and use the same variable in the UltraLite user authentication calls and the synchronization call.
You can design your application so that, if passwords are reset at a MobiLink consolidated site, your application prompts for the new password.
To prompt for a new MobiLink/UltraLite password
Save the user ID and password in variables.
Synchronize.
If synchronization fails because the user was not authenticated, prompt the user for a new password.
Update the UltraLite user's password using the appropriate function or method:
ULGrantConnectTo (embedded SQL)
Connection.GrantConnectTo method (C++ API).
JdbcDatabase.grant method (Java)
Update the synch_info structure and synchronize again.
For information on MobiLink user authentication, see Authenticating MobiLink Users.