Enabling Directory Services for Linux

Use the openladap packages to enable directory services on Linux platform.

Prerequisites
Install these packages:
  • openldap-2.0 (runtime)

  • openldap-devel-2.0

The Adaptive Server ODBC Driver attempts to load a file named libldap.so, but to create a symbolic link with this file, you must install the openldap-devel package. The openldap runtime package does not create the symbolic link.

If you are linking to the unixODBC Driver Manager:

Task
  1. Edit the Adaptive Server ODBC datasource template, odbc.ini.
  2. Reinstall the datasource using the unixODBC command line tool:
    # odbcinst -i -s -f <dsn template file>

    where dsn template file is the complete path to the Adaptive Server ODBC datasource template file.

If you are directly linking to the Adaptive Server ODBC Driver, modify the odbc.ini file. For example:

[sampledsn] 
Description=Sybase ODBC Data Source
UserID=sa
Password= Driver=Adaptive
Server Enterprise Server=sampleserver
Port=4100
Database=pubs2
UseCursor=1
DSURL=ldap://SYBLDAP1:389/dc=sybase,dc=com??one?sybaseServername=MANGO

When LDAPS is specified in the LDAP URL instead of LDAP, an SSL connection is established. The application needs to set the TrustedFile attribute to indicate where the Certificate Authority signing certificate is located.

Example of the attributes that you must specify for the DSN in odbc.ini (or connection string):

DSURL = ldaps:// huey:636/dc=sybase,dc=com????bindname=cn=Manager,dc=Sybase,dc=com?secretDSServiceName = myAse 
TrustedFile = /usr/u/sybase/config/trusted.txt
Note: The Certificate Authority signing certificate used to sign the LDAP server’s certificate must be appended to the trusted.txt file.