Use the openladap packages to enable directory services on Linux platform.
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:
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