---
name: "register-ds-admin"
section: "8"
platform: "linux"
package: "389-admin"
version: "1.1.43-1+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/register-ds-admin"
---

# register-ds-admin(8)

Registers Directory Server instances with an Admin Server

## NAME

register-ds-admin.pl - Registers Directory Server instances with an Admin Server

## SYNOPSIS

**register-ds-admin.pl** \[*--options*\] *--* \[*args*\]

## DESCRIPTION

Registers existing Directory Server instances with an existing Admin Server.  This command does the set up necessary for the use of the Console to manage  the Directory Server instances you are registering.  You can register remote  Directory Server instances to a local Admin Server, as well as register local  Directory Server instances with a remote Admin Server - this allows a single  console/Admin Server to manage all your Directory Servers on your network.

Use this command with the **--update** option after an upgrade to refresh\
  the server information (version, build number, etc.) in the Console.

Can be run in interactive mode with different levels of verbosity, or in silent mode with parameters supplied in a .inf format file or on the command line.

## OPTIONS

A summary of options is included below:

- **--help**

  This message

- **--version**

  Print the version and exit

- **--debug**

  Turn on debugging

- **--silent**

  Use silent setup - no user input

- **--file=*name***

  Use the file 'name' in .inf format to supply the default answers

- **--keepcache**

  Do not delete the temporary .inf file generated by this program

- **--logfile**

  Log setup messages to this file - otherwise, a temp file will be used

- **--update**

  Update an existing installation (e.g. after upgrading packages)

- **--continue**

  (update only) keep going despite errors (also --force)

For all options, you can also use the short name e.g. **-h**, **-d**, etc.   For the **-d** argument, specifying it more than once will increase the debug  level e.g. **-ddddd**

args: You can supply default .inf data in this format:

-

  section.param=value

e.g.

-

  General.FullMachineName=foo.example.com

or

-

  "slapd.Suffix=dc=example,dc=com"

Values passed in this manner will override values in an .inf file given with  the **-f** argument.

## Silent Mode (.inf file)

Here is an example of an .inf file that registers a local Directory Server instance with a remote server over SSL:

-

  \[General\]\
   FullMachineName= localhost.localdomain\
   SuiteSpotUserID= nobody\
   SuiteSpotGroup= nobody\
   AdminDomain= redhat.com\
   ConfigDirectoryAdminID= admin\
   ConfigDirectoryAdminPwd= admin\
   ConfigDirectoryLdapURL= ldap://localhost.localdomain:389/o=NetscapeRoot\

  \[admin\]\
   Port= 9830\
   ServerIpAddress= 127.0.0.1\
   ServerAdminID= admin\
   ServerAdminPwd= password\

  \[register\]\
   configinst= slapd-localhost::cn=directory manager::password\
   instance= slapd-replica::cn=directory manager::password\
   remotehost= ldap.redhat.com\
   remoteport= 636\
   remotebinddn= cn=directory manager\
   remotebindpw= password\
   localcertdir= /etc/dirsrv/slapd-localhost\
   admindomain= redhat.com\
   admindn= uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot\
   adminpw= password\
   destination= remote\

  The above .inf will install a local admin server and then store its configuration (o=netscaperoot)  in the "config" instance.  The second local Directory Server instance, slapd-replica, is also  added the configuration server.  Then this server's configuration to added to the  remote configuration server on ldap.redhat.com

The **\[register\]** directive parameter descriptions:

- **configinst = INSTANCE::BIND\_DN::PASSWORD**

  -

  *INSTANCE = The server where the existing configuration exists, or the server where you want* to add the configuration to. The value takes the form of slapd-INSTANCE.\
   *BIND\_DN = The root DN, usually “cn=directory manager”, for the local configuration server.*\
   *PASSWORD = the root DN password.*

- **instance = INSTANCE::BIND\_DN::PASSWORD**

  -

  *INSTANCE = Additional local Directory Server instance that should be added to the* configuration server. The value takes the form of slapd-INSTANCE.\
   *BIND\_DN = The root DN, usually “cn=directory manager”, for the local server.*\
   *PASSWORD = the root DN password.*\

  This is an optional parameter for specifying other local Directory Server instances to register with the configuration server.\

- **remotehost = The FQDN of the remote server. This is either the rmeote server we**

  registering with, or the remote server that is being registered with the local configuration  server.

- **remoteport = The port of the remote server.**

  - **remotebinddn = The bind DN, preferrably the root DN, to connect to the remote server.**

  - **remotebinddn = The password for the remotebinddn entry.**

  - **localcertdir = The directory of the certificate database files (e.g. cert8.db, key3.db). This**

  optional parameter is only used if connecting to the remote server over SSL.

- **admindomain = The admin domain of the remote configuration server.**

  - **admindn = The local administrator DN for o=netscaperoot**

  - **adminpw = The local administrator password.**

  - **destination = local, or remote**

  -

  *local = Registers the remote server with the local configuration server.*\
   *remote = Registers the local server with the remote configuration server.*

## AUTHOR

register-ds-admin.pl was written by the 389 Project.

## REPORTING BUGS

Report bugs to http://bugzilla.redhat.com.

## COPYRIGHT

Copyright © 2010 Red Hat, Inc.\
 This is free software.  You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this software distribution.  This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.
