summaryrefslogtreecommitdiffstats
path: root/scripts/ds-create.sh
blob: 12379a46c5acad236778c7a4c250291bf09f7dd4 (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 -x -D "cn=Directory Manager" -w Secret.123 << EOF
dn: dc=pki,dc=example,dc=com
objectClass: domain
dc: pki
EOF