Setting up LDAP for Windows

This section describes how to set up LDAP for the Microsoft Windows platform.

StepsTo set up LDAP for Windows

  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 the following 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 that you would for an ASE server. For more information about using dsedit, refer to the Adaptive Server Enterprise Utility Guide.

  5. To test the new setup, isql into the server without using the sql.ini file.