Contents Index Adding user authentication to your application Managing user IDs and passwords

UltraLite Embedded SQL User's Guide
  Adding Non Data Access Features to UltraLite Applications
    Adding user authentication to your application

Enabling user authentication


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)

  1. 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.


Contents Index Adding user authentication to your application Managing user IDs and passwords