summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-11-14 20:57:13 -0600
committerEndi S. Dewata <edewata@redhat.com>2017-11-14 20:57:13 -0600
commitfff08a4f08ddd6633e536d13f8ce89caeb069d2d (patch)
treedef06aedeab3fa9240525639ec20184465d82c97
parent8ebb6025dd0f585f6df3fd9308b10f9559c0a067 (diff)
downloadpki-dev-fff08a4f08ddd6633e536d13f8ce89caeb069d2d.zip
pki-dev-fff08a4f08ddd6633e536d13f8ce89caeb069d2d.tar.gz
pki-dev-fff08a4f08ddd6633e536d13f8ce89caeb069d2d.tar.xz
Removed unused script.
-rwxr-xr-xscripts/cmcrequest.sh21
-rwxr-xr-xscripts/ds-create.sh18
2 files changed, 9 insertions, 30 deletions
diff --git a/scripts/cmcrequest.sh b/scripts/cmcrequest.sh
deleted file mode 100755
index c4fe9f7..0000000
--- a/scripts/cmcrequest.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-PKCS10Client -d ~/.dogtag/pki-tomcat/ca/alias -p Secret.123 \
- -a rsa -l 1024 \
- -n "uid=testuser,ou=people,dc=example,dc=com" \
- -o /tmp/testuser.pem
-
-cat > cmcrequest.cfg << EOF
-numRequests=1
-
-input=/tmp/testuser.pem
-output=/tmp/cmcrequest.out
-
-dbdir=/root/.dogtag/pki-tomcat/ca/alias
-password=Secret.123
-nickname=caadmin
-
-format=pkcs10
-EOF
-
-CMCRequest cmcrequest.cfg
diff --git a/scripts/ds-create.sh b/scripts/ds-create.sh
index 12379a4..ae44676 100755
--- a/scripts/ds-create.sh
+++ b/scripts/ds-create.sh
@@ -1,16 +1,16 @@
#!/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"\
+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
+ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF
dn: dc=pki,dc=example,dc=com
objectClass: domain
dc: pki