Enabling LDAP directory services

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.

Note Open Client/Open Server applications that use the -Ioption 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=libsybdldap.dll 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=libsybdldap.dll ldap://seashore/d=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.

Enabling LDAP directory services

To use a directory service, you must:

1Configure the LDAP server according to the vendor-supplied documentation.

2Add the location of the LDAP libraries to the Unix load library path environment variable for your platform.

3Configure the libtcl.cfg file to use directory services. Use any standard ASCII text editor to:

Remove the semicolon (;) comment markers from the beginning of the LDAP URL lines in the libtcl.cfg file under the [DIRECTORY] entry.

74

Adaptive Server Enterprise

Page 90
Image 90
Sybase DC35823-01-1500-04 manual Enabling Ldap directory services, Where the ldapurl is defined as