Setting Up LDAP for UNIX

Configure LDAP for UNIX.

  1. In the <install_dir>/DC-15_0/connectivity/OCS-15_0/config directory, create a libtcl.cfg file and add these lines under [DIRECTORY]:
    ; This code shows how to specify the different types 
    ; of drivers that will be used by Client-Library and 
    ; Server-Library applications. 
    ; 
    ; This is the sample for SUN Solaris platform. 
    ; 
    [DRIVERS] 
    ;libtli.so=tcp unused             ; This is the non-threaded tli driver. 
    
    ;libtli_r.so=tcp unused           ; This is the threaded tli driver. 
    
    [DIRECTORY]
    ldap=libdldap.so 
    ldap://<LDAP server location >
  2. Set up your Sybase environment variables:
    setenv SYBASE <release path> 
    setenv SYBASE_OCS OCS-15_0 
    setenv SYBASE_TCL_CFG <your libtcl.cfg pathname> 
    setenv LD_LIBRARY_PATH 
    <install_dir>/OCS_15_0/lib:$SYBASE/$SYBASE_OCS/lib3p 
    
    setenv PATH <install_dir>/OCS_15_0/bin:$SYBASE:$PATH
  3. Use <install_dir>/DCO_15_0/connectivity/OCS-15_0/bin/dscp to add an entry for your server into the LDAP server the same way you would for an ASE server. See the Adaptive Server Enterprise Utility Guide for more information on using dscp.
To test the new setup, use isql to access the server without using the interfaces file.