Adding a server entry

To add a server entry, enter:

add SERVERNAME

The dscp utility prompts you for information about SERVERNAME. Enter a value for each attribute or press return to accept the default value, which is shown in brackets [ ].

For example, if you enter:

add myserver

The dscp utility prompts you for the following information:

Service: [ASE]
 Transport Type: [tcp] tcp
 Transport Address: victory 8001
 Security Mechanism []:

To exit the add mode, press Enter until you return to the dscp prompt >>.

A server entry can have up to 20 transport type/address combinations associated with it.

See Table 7-2 for a description of the server attributes listed above.

StepsAdding a server entry to an LDAP directory service

To use dscp to make an entry into an LDAP server, you need to enable LDAP by editing the $SYBASE/$SYBASE_OCS/config/libtcl.cfg file, and adding the entry of the LDAP server you will be using.

WARNING! If you have a blank space after your LDAP server entry, dscp will default to using the interfaces driver and not connect to an LDAP server.

Use dscp to add a server to the directory services.

  1. To start dscp, enter:

    $SYBASE/$SYBASE_OCS/bin/dscp
    
  2. Before you can view, add, or modify server entries, you must open a session. Opening a dscp session allows you to interact with any directory service that has a driver listed in libtcl*.cfg. To open a session, enter:

    open DSNAME
    

    where DSNAME is the name of the directory service.

    If you do not specify DSNAME, dscp uses the default directory service provider specified in the libtcl*.cfg file. If there are no entries in the libtcl*.cfg file, dscp uses the default interfaces file located in $SYBASE.

  3. A connection to an LDAP server is indicated by:

    Session 1 ldap>>
    

    If the LDAP server requires user authentication for login, you must use the -Uusername command-line parameter flag when connecting to the server.

    If the LDAP server is configured to allow anonymous access, the user name and password are not required. If the user name and password are specified in the libtcl*.cfg file, dsedit and dscp utilities use these variables.

  4. To add a server to the directory services, enter:

    add server_name

    where server_name is the name of the server to be added.

  5. The next prompt specifies the service type. Adaptive Server is the default value:

    Service [ASE Server]

    Press Enter to accept the default.

  6. Enter the transport type. Press Enter to accept the default value of TCP, or enter a value from Table 5-3.

  7. Enter the transport address. Valid entries are any values that enable the transport type specified. For example, for a TCP connection, enter: host_name port_number.

  8. Because any LDAP server entity can have multiple address entries, you are again prompted for “Transport type.” Enter another transport type, or press Enter (leaving the field blank) to skip this prompt and proceed.

  9. At the prompt, enter another valid transport address that corresponds to the additional transport type, or press Enter (leaving the field blank) to proceed.

  10. Optionally, enter a security mechanism OID.

  11. Optionally, enter a secondary server for failover.

  12. Press Enter. When completed, the following message displays:

    Added server_name done
    

To view the server entries, enter the following URL in a Netscape or Mozilla- based Web browser:

ldap://host:port/ditbase??one

For example:

ldap://huey:11389/dc=sybase,dc=com??one

NoteMicrosoft Internet Explorer does not recognize LDAP URLs.