UltraLite Embedded SQL User's Guide
Adding Non Data Access Features to UltraLite Applications
Adding user authentication to your application
Enabling user authentication requires the application to supply a valid UltraLite user ID and password when connecting to the UltraLite database. If you do not explicitly enable user authentication, UltraLite does not authenticate users.
To enable user authentication (embedded SQL)
Call ULEnableUserAuthentication before calling db_init. For example:
app(){ ... ULEnableUserAuthentication( &sqlca ); db_init( &sqlca ); ...
The call to db_init precedes all other database activity in the application.
Once you have enabled user authentication, you must add user management code to your application. For more information, see Managing user IDs and passwords.