summaryrefslogtreecommitdiffstats
path: root/scripts/ds-create.sh
blob: ae44676c05c6215883adcd2052ba05ad5122c936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -x

setup-ds.pl --silent -- \
	General.FullMachineName=$HOSTNAME \
	General.SuiteSpotUserID=nobody \
	General.SuiteSpotGroup=nobody \
	slapd.ServerPort=389 \
	slapd.ServerIdentifier=pki-tomcat \
	slapd.Suffix=dc=example,dc=com \
	"slapd.RootDN=cn=Directory Manager" \
	slapd.RootDNPwd=Secret.123

ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF
dn: dc=pki,dc=example,dc=com
objectClass: domain
dc: pki
EOF