The MIT Kerberos security mechanism is now available on DB-Library, providing network and mutual authentication services. This feature allows older Sybase applications to use Kerberos authentication services, with less need for modification and recompilation.
The following DB-Library macros were added to enable Kerberos support:
DBSETLNETWORKAUTH – used to enable or disable network base authentication.
DBSETLMUTUALAUTH – used to enable or disable mutual authentication of the connection’s security mechanism.
DBSETLSERVERPRINCIPAL – used to set the server’s principal name, if required.
DB-Library only supports network authentication and
mutual authentication services in the Kerberos security mechanism.
To install MIT-Kerberos on DB-Library
The following 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.
Purchase Sybase SDK DB-Lib Kerberos Authentication Option 15.0.
Install Sybase SDK DB-Lib Kerberos Authentication Option 15.0 over SDK 15.0 ESD #3 or later.
In DB-Library, include sybdbn.h instead of sybdb.h.
Using dbsetversion, set the DB-Library version to DBVERSION_100 or above.
Call one or more of the following APIs:
DBSETLNETWORKAUTH(Loginrec *loginrec, DBBOOl enable)
DBSETLMUTUALAUTH(Loginrec *loginrec, DBBOOl enable)
DBSETLSERVERPRINCIPAL(Loginrec *loginrec, char *name)
Recompile DB-Library.