The libtcl.cfg File

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.

The purpose of the libtcl.cfg file is to provide configuration information such as driver, directory, and security services for Open Client/Open Server and Open Client/Open Server-based applications. 32-bit utilities, such as dsedit and srvbuild, look up the libtcl.cfg.

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

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

Note: Open 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:

ldap=libsybdldap.dll  ldapurl

where the ldapurl is defined as:


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

ldap=libsybdldap.dll ldap://ldaphost/d=sybase,dc=com

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