Kerberos security services

The Kerberos security mechanism provides the following services:

For a description of these security services, see the Open Client Client-Library/C Reference Manual. See “Client-Library and security services” for an overview of how client applications use security services.

NoteKerberos security services are not supported on Windows 2003 (x64) (Service Pack 1).


Configuring CyberSafe Kerberos

The following considerations apply specifically to client applications that use CyberSafe Kerberos security services:

NoteSome tasks described here require you to use the CyberSafe Kerberos administration tools. See your CyberSafe Kerberos documentation for information.


Configuring MIT Kerberos


Credential delegation for MIT Kerberos

The Kerberos security driver supports credential delegation when using the MIT Kerberos Generic Security Services (GSS) library. This allows you to set up an Open Server gateway application that uses the delegated client credentials when establishing a connection with a remote server.

StepsEstablishing a connection with a remote server using credential delegation

This is an example of a call sequence you can employ when using credential delegation. The ctos example in $SYBASE/ OCS-15_0/sample/srvlibrary. connect.c contains an example of the properties mentioned here:

  1. The client application requests for credential delegation and forwards the credential to the gateway connection using:

    ct_con_props(..., CS_SET, SRV_SEC_DELEGATION, ...)
    
  2. The connection handler of the gateway application checks whether the client requested credential delegation:

    if (srv_thread_props(..., CS_GET,
         SRV_T_SEC_DELEGATION, ...))
        {...}
    
  3. The connection handler retrieves the delegated client credentials:

    srv_thread_props(..., CS_GET, 
         SRV_T_SEC_DELEGCRED, ...)
    
  4. The client application sets the delegated credentials in the Client-Library connection structure for use in connecting to the remote server:

    ct_con_props(..., CS_SET, CS_SEC_CREDENTIALS, ...)
    
  5. The client application attempts to connect to the remote server using ct_connect.

You can also request for credential delegation using the isql and bcp option -Vd. For more information, see the Open Client and Open Server Programmer’s Supplement for Microsoft Windows.

For detailed information on using credential delegation, see the Open Server Server-Library/C Reference Manual and the Open Client Client-Library/C Reference Manual.


Using Windows Security SSPI

If Kerberos support is provided by the Windows Security Support Provider Interface (SSPI), edit the csfkrb5 entry in the libtcl.cfg file to specify the libsspiwrapper.dll as the GSS library.

For example:

 csfkrb5=LIBSKRB secbase=@REALM libgss=C:\sybase\OCS-15_0\lib3p\libsspiwrapper.dll