The libtcl.cfg and the libtcl64.cfg files (collectively libtcl*.cfg files) determine whether the interfaces file or LDAP directory services should be used. If LDAP is specified in the libtcl*.cfg file, the interfaces file is ignored unless the application specifically overrides the libtcl*.cfg file by passing the -I parameter while connecting to a server.
You use the libtcl*.cfg to specify the LDAP server name, port number, DIT base, user name, and password to authenticate the connection to an LDAP server. In the libtcl*.cfg file, LDAP directory services are specified with a URL in the DIRECTORY section.
For example:
[DIRECTORY]
ldap=libdldap.so ldap://huey:11389/dc=sybase,dc=com?? one????bindname=cn=Manager,dc=sybase,dc=com secret
Table 2-20 defines the keywords for the ldapurl variables.
Keyword |
Description |
Default |
CS_* property |
---|---|---|---|
host (required) |
The host name or IP address of the machine running the LDAP server |
None |
|
port |
The port number on which the LDAP server is listening |
389 |
|
ditbase (required) |
The default DIT base |
None |
CS_DS_DITBASE |
username |
Distinguished name (DN) of the user to authenticate |
NULL (anonymous authentication) |
CS_DS_PRINCIPAL |
password |
Password of the user to be authenticated |
NULL (anonymous authentication) |
CS_DS_PASSWORD |
You can find a complete list of Sybase’s LDAP directory schema in:
UNIX – $SYBASE/$SYBASE_OCS/config
NT – %SYBASE%\%SYBASE_OCS%\ini In the same directory, there is also a file called sybase-schema.conf, which contains the same schema, but in a Netscape-specific syntax.