3.Click the Network tab.

4.Enter the port number for the Admin Server instance in the Port field. The Admin Server port number has a default number of 9830.

5.Click OK.

6.Open the Tasks tab, and click the Restart Server button to restart the server and apply the changes.

7.Close the Console, then restart the Console, specifying the new Admin Server port number in the connection URL.

2.5.2Changing the port number in the command line

The port number for the Admin Server is 9830 by default.

The Admin Server configuration is stored in two locations. The main entry is an LDAP entry in the Configuration Directory Server's o=NetscapeRoot database. The other is the console.conf file. Changing the port number requires changing both settings.

1.Edit the Admin Server configuration entry in the Configuration Directory Server.

a.Get the name of the Admin Server entry. Since the Admin Server entry has a special object class, nsAdminConfig, it is possible to search for the entry using that object class to retrieve the DN.

ldapsearch -D "cn=directory manager" -w secret -p 389 -h server.example.com \ -b "o=NetscapeRoot" "(objectclass=nsAdminConfig)" dn

version:1

dn: cn=configuration, cn=admin-serv-example, cn=HPDS Administration Server, cn=Server Group, cn=server.example.com, ou=example.com, o=NetscapeRoot

b.The Admin Server entry can be edited using ldapmodify. The port number is set in the nsServerPort attribute. For example:

ldapmodify -D "cn=directory manager" -w secret -p 389 -h server.example.com

dn: cn=configuration, cn=admin-serv-example, cn=HPDS Administration Server, cn=Server Group, cn=server.example.com, ou=example.com, o=NetscapeRoot

14 Admin Server configuration