Enabling LDAP Directory Services

To use a directory service, you must enable LDAP Directory Services.

  1. Configure the LDAP server according to the vendor-supplied documentation.
  2. Add the location of the LDAP libraries to the PATH environment variable for your platform.
  3. Configure the libtcl.cfg file to use directory services.

    Use any standard ASCII text editor to:

    • Remove the semicolon (;) comment markers from the beginning of the LDAP URL lines in the libtcl.cfg file under the [DIRECTORY] entry.

    • Add the LDAP URL under the [DIRECTORY] entry.

    Warning!  The LDAP URL must be on a single line.
    ldap=libsybdldap.dll
    ldap://ldaphost/dc=sybase,dc=com??one??bindname=uid=Manager,dc=sybase,
    dc=com?password
    For example:
    [DIRECTORY]
    ldap=libsybdldap.dll ldap://ldaphost/dc=sybase,dc=com??one??bindname=uid=Manager,dc=sybase,
    dc=com?password

    one” indicates the scope of a search that retrieves entries one level below the DIT base.

    ldapurl Variables

    Keyword

    Description

    Default

    host (required)

    The host name or IP address of the machine running the LDAP server

    None

    port

    The port number that the LDAP server is listening on

    389

    ditbase (required)

    The default DIT base

    None

    username

    Distinguished name (DN) of the user to authenticate

    NULL (anonymous authentication)

    password

    Password of the user to be authenticated

    NULL (anonymous authentication)

  4. Verify that the appropriate environment variable points to the required third-party libraries. The Netscape LDAP SDK libraries are located in %SYBASE%\%SYBASE_OCS%\lib3p.The Windows PATH environment variable must point to this directory.
  5. Use dscp or dsedit to add your server entry to the LDAP server.