summaryrefslogtreecommitdiffstats
path: root/dogtag-9.0/ds-create.sh
blob: 69c7db2cee5341729744ffcd3e163f0e219a607b (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=Secret123

ldapadd -x -D "cn=Directory Manager" -w Secret123 << EOF
dn: dc=pki,dc=example,dc=com
objectClass: domain
dc: pki
EOF