Sun Directory Server Enterprise Edition 7.0 Administration Guide

Configuring Directory Proxy Server as a Connection Based Router

Directory Proxy Server 5.2 is a connection based router. In Directory Proxy Server 5.2, a client connection is routed to a specific directory server. All requests on that client connection are sent to the same directory server until the connection is broken or until the client unbinds.

Directory Proxy Server 7.0 is an operation based router. However, for compatibility, this version of Directory Proxy Server can be configured as a connection based router, as described in the following procedure.

ProcedureTo Configure Directory Proxy Server as a Connection Based Router

  1. Create and configure one or more connection handlers as described in Creating, Configuring, and Deleting Connection Handlers.

    You can also use the default connection handler.

  2. Configure all connection handlers to route requests to the root data view only.

    For example:


    $ dpconf set-connection-handler-prop -h host1 -p 1389 myConnectionHandler \
     data-view-routing-policy:custom data-view-routing-custom-list:"root data view"
  3. Create and configure a data source for each back-end LDAP server as described in Creating and Configuring LDAP Data Sources.

    For example:


    $ dpconf create-ldap-data-source -h host1 -p 1389 myDataSource host2:2389
  4. Create and configure a data source pool as described in Creating and Configuring LDAP Data Source Pools.

    For example:


    $ dpconf create-ldap-data-source-pool -h host1 -p 1389 myDataSourcePool
  5. Attach all of the data sources to the data source pool as described in Attaching LDAP Data Sources to a Data Source Pool.

    For example,


    $ dpconf attach-ldap-data-source -h host1 -p 1389 myDataSourcePool myDataSource
  6. Configure each data source to authenticate clients by using BIND replay as described in Forwarding Requests With Bind Replay.

    For example:


    $ dpconf set-ldap-data-source-prop -h host1 -p 1389 myDataSource \
     client-cred-mode:use-client-identity
  7. Configure affinity between the client connection and the data source pool as described in Configuring Client Affinity.

    For example:


    $ dpconf set-ldap-data-source-pool-prop -h host1 -p 1389 myDataSourcePool \
     enable-client-affinity:true client-affinity-policy:read-write-affinity-after-write