How applications use a directory service

Client-Library, Server-Library, and DB-Library determine whether to use a directory service or sql.ini as follows:

  1. If the Client-Library or the Server-Library application specifies a directory driver, Client-Library by calling ct_con_props (CS_SET, CS_DS_PROVIDER) and Server-Library by calling srv_props (CS_SET, SRV_DS_PROVIDER), the application checks in the [DIRECTORY] section of libtcl.cfg for a matching driver and loads that driver.

    See “The libtcl.cfg and libtcl64.cfg files” for reference information about directory drivers and libtcl*.cfg.

    NoteStep 1 does not apply to DB-Library application. Use steps 2 and 3 for specifying directory service for DB-Library.

  2. If the client application does not specify a directory driver, Client-Library, Server-Library, and DB-Library loads the directory driver listed by the first entry in the [DIRECTORY] section of libtcl.cfg.

  3. Client-Library, Server-Library, and DB-Library fall back and use sql.ini to obtain the server’s address if any of the following are true:

You use the libtcl*.cfg file to specify the LDAP server name, port number, DIT base, user name, and password to authenticate the connection to an LDAP server.

What you should know about the libtcl*.cfg file:

The libtcl*.cfg file is located in %SYBASE%\%SYBASE_OCS%\ini.