summaryrefslogtreecommitdiffstats
path: root/scripts/ca-tps-remove.sh
diff options
context:
space:
mode:
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