The libtcl.cfg and libtcl64.cfg files

You use the libtcl.cfg and the libtcl64.cfg files (collectively libtcl*.cfg files) to specify the LDAP server name, port number, DIT base, user name, and password to authenticate the connection to an LDAP server.

The purpose of the libtcl*.cfg files is to provide configuration information such as driver, directory, and security services for Open Client/Open Server and Open Client/Open Server-based applications. Both libtcl.cfg and libtcl64.cfg are provided on 64-bit platforms. 32-bit utilities (on 64-bit platforms) such as dsedit and srvbuild, look up the libtcl.cfg file while 64-bit applications look up the libtcl64.cfg file for configuration information.

You should edit both the libtcl.cfg and the libtcl64.cfg files to ensure compatibility between 32- and 64-bit applications.

The default libtcl*.cfg file is located in $SYBASE/$SYBASE_OCS/config

If LDAP is specified in the libtcl*.cfg file, the interfaces file is not used.

NoteOpen Client/Open Server applications that use the -I option at start-up override the libtcl*.cfg file and use the interfaces file.

In its simplest form, the libtcl*.cfg file is in this format:

[DIRECTORY]
ldap=libdldap.so ldapurl

where the ldapurl is defined as:

ldap://host:port/ditbase

The following LDAP entry, using these same attributes, is an anonymous connection and only works only if the LDAP server allows read-only access.

      ldap=libdldap.so ldap://test:389/dc=sybase,dc=com

You can specify a user name and password in the libtcl*.cfg file as extensions to the LDAP URL to enable password authentication at connection time.