summaryrefslogtreecommitdiffstats
path: root/scripts/ca-tps-remove.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-12 17:28:37 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-12 17:28:37 +0200
commit3190be941ce9bb8b05b1bf9d49aa95480c1ba77b (patch)
tree33b37845f9a405ef9ce4b8396ac8f180e5794154 /scripts/ca-tps-remove.sh
parentda5d725379fff33a445c0b0a5c510b62e2485c88 (diff)
downloadpki-dev-3190be941ce9bb8b05b1bf9d49aa95480c1ba77b.zip
pki-dev-3190be941ce9bb8b05b1bf9d49aa95480c1ba77b.tar.gz
pki-dev-3190be941ce9bb8b05b1bf9d49aa95480c1ba77b.tar.xz
Updated CA scripts.
Diffstat (limited to 'scripts/ca-tps-remove.sh')
-rwxr-xr-xscripts/ca-tps-remove.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/ca-tps-remove.sh b/scripts/ca-tps-remove.sh
new file mode 100755
index 0000000..267e3a9
--- /dev/null
+++ b/scripts/ca-tps-remove.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+TPSHOST=`cat tps.host`
+
+ldapmodify -x -D "cn=Directory Manager" -w Secret123 -c << EOF
+dn: cn=Certificate Manager Agents,ou=groups,dc=ca,dc=pki,dc=example,dc=com
+changetype: modify
+delete: uniqueMember
+uniqueMember: uid=TPS-$TPSHOST-8443,ou=people,dc=ca,dc=pki,dc=example,dc=com
+
+dn: uid=TPS-$TPSHOST-8443,ou=people,dc=ca,dc=pki,dc=example,dc=com
+changetype: delete
+EOF