Here it is. It is mostly a copy of the example 6.2 in the installation doc for silent installs.
# slapd-test2.inf for installation on
ldap2.test.com
# config directory on
ldap1.test.com[General]
AdminDomain =
test.comSuiteSpotGroup = nobody
ConfigDirectoryLdapURL = ldap://
ldap1.test.com:4000/o=NetscapeRoot
ConfigDirectoryAdminID = admin
ConfigDirectoryAdminPwd = pwd
SuiteSpotUserID = nobody
[slapd]
InstallLdifFile = suggest
ServerIdentifier = test2
ServerPort = 4002
AddOrgEntries = No
RootDN = cn=Directory Manager
RootDNPwd = pwd
Suffix = dc=test,dc=com
UseExistingMC = Yes
UseExistingUG= No
AddSampleEntries = No
[admin]
ServerAdminID = admin
ServerAdminPwd = pwd
ServerIpAddress = 0.0.0.0
Port = 9830
Could be I'm missing some lib, but on the other hand, it looks as if the ldapurl in adm.conf must point to the config directory so it wouldn't do any good if it did correctly set the hostname of the machine you install on (
ldap2.test.com in my case), since the configdir is on another machine. The correct ldap url for config directory is always going to be ldap://
ldap1.test.com:4000 and looks like the script should always just use the host:port from ConfigDirectoryLdapURL for ldapurl in adm.conf. Also, regardless if fullmachinename is set or not, when adm.conf already exists on running setup-ds-admin, the property is always set correctly to ldap://
ldap1.test.com:4000 and the registration/unregistration works after.