MIT Kerberos on DB-Library

DB-Library uses the MIT Kerberos security mechanism to provide network and mutual authentication services. This feature allows older Sybase applications to use Kerberos authentication services, with less need for modification and recompilation.

These DB-Library macros enable Kerberos support:

NoteDB-Library only supports network authentication and mutual authentication services in the Kerberos security mechanism.

StepsInstalling MIT-Kerberos on DB-Library

These steps provide basic information on installing MIT Kerberos on DB-Library. For more detailed information, refer to Installation and Release Bulletin Sybase SDK DB-Lib Kerberos Authentication Option 15.0.

  1. Purchase Sybase SDK DB-Lib Kerberos Authentication Option 15.0.

  2. Install Sybase SDK DB-Lib Kerberos Authentication Option 15.0 over SDK 15.0 ESD#3 or later.

  3. In DB-Library, include sybdbn.h instead of sybdb.h.

  4. Using dbsetversion, set the DB-Library version to DBVERSION_100 or above.

  5. Call one or more of the following APIs:

    • DBSETLNETWORKAUTH(LOGINREC *loginrec, DBBOOL enable)
      
    • DBSETLMUTUALAUTH(LOGINREC *loginrec, DBBOOL enable)
      
    • DBSETLSERVERPRINCIPAL(LOGINREC *loginrec, char *name)
      
  6. Recompile DB-Library.