6.5 Sample Scenario for Multiple Instances

Mary is a nonroot user who wants to configure two trees on a single host machine for a single binary.

6.5.1 Planning the Setup

Mary specifies the following instance identifiers.

  • Instance 1:

    Port number the instance should listen on

    1524

    Configuration file path

    /home/maryinst1/nds.conf

    DIB directory

    /home/mary/inst1/var

  • Instance 2:

    Port number the instance should listen on

    2524

    Configuration file path

    /home/mary/inst2/nds.conf

    DIB directory

    /home/mary/inst2/var

6.5.2 Configuring the Instances

To configure the instances based on the above mentioned instance identifiers, Mary must enter the following commands.

  • Instance 1:

    ndsconfig new -t mytree -n o=novell -a cn=admin.o=company -b 1524 -D 
    /home/mary/inst1/var --config-file /home/mary/inst1/nds.conf
    
  • Instance 2:

    ndsconfig new -t corptree -n o=novell -a cn=admin.o=company -b 2524 -D 
    /home/mary/inst2/var --config-file /home/mary/inst2/nds.conf
    

6.5.3 Invoking a Utility for an Instance

If Mary wants to run the DSTrace utility for instance 1 that is listening on port 1524, with its configuration file in /home/mary/inst1/nds.conf location and its DIB file located in /home/mary/inst1/var, then she can run the utility as follows:

ndstrace --config-file /home/mary/inst1/nds.conf

or

ndstrace -h 164.99.146.109:1524

If Mary does not specify the instance identifiers, the utility displays all the instances owned by Mary and prompts her to select an instance.

6.5.4 Listing the Instances

If Mary wants to know details about the instances in the host, she can run the ndsmanage utility.

  • To display all instances owned by Mary:

    ndsmanage
    
  • To display all instances owned by John (username is john):

    ndsmanage john
    
  • To display all instances of all users that are using a particular installation of eDirectory:

    ndsmanage -a