Setting Up LDAP for Windows

Set up LDAP for the Microsoft Windows platform.

  1. In the C:\install_dir\DCO-15_0\connectivity\OCS-15_0\ini directory, create a libtcl file and add the following lines under [DIRECTORY]:
    ; This is the sample Net-Library configuration file 
    ; that 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 Windows platforms.
    [DRIVERS]
    
    NLWNSCK=TCP SOckets
    NLWNSCK=TCP/IP Sockets
    [NT_DIRECTORY]
    
    ldap=libldap ldap://
    [SECURITY]
    
    ;NTLM=LIBSMSSP
    [FILTERS]
    
    ;SSL=LIBFSSL
  2. Set these Sybase environment variables (assuming that the ECDA Option for Oracle is installed on the ā€œdā€ drive in the Sybase directory):
    set SYBASE=d:\Sybase
    set SYBASE_TCL_CFG=d:\as150_IR\OCS-15_0\ini\libtcl.cfg
    set SYBASE_OCS=OCS-15_0
    set PATH=%SYBASE%;%SYBASE%\%SYBASE_OCS%\dll;
    %SYBASE%\%SYBASE_OCS%\lib3p;%SYBASE%\%SYBASE_OCS%\lib;
    %SYBASE%\%SYBASE_OCS%\ini;%SYBASE%\%SYBASE_OCS%\bin;
    %PATH%
  3. Add your server entry to the LDAP server:
    %SYBASE%\DC-15_0\connectivity\OCS-15_0\bin\dsedit
  4. Add an entry for your server into the LDAP server, following the same steps for an Adaptive Server. For more information about using dsedit, see the Adaptive Server Enterprise Utility Guide.
  5. To test the new setup, use isql to access the server without using the sql.ini file.