summaryrefslogtreecommitdiffstats
path: root/scripts/ds-insecure-check.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 07:28:26 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 07:28:26 +0200
commitd2cc01d76e69f8d3602c5181263b95cbcd1c79a3 (patch)
tree7b136f1a76e2e808bc48332283054d9f05d4863d /scripts/ds-insecure-check.sh
parentc23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5 (diff)
downloadpki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.zip
pki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.tar.gz
pki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.tar.xz
Added DS scripts.
Diffstat (limited to 'scripts/ds-insecure-check.sh')
-rwxr-xr-xscripts/ds-insecure-check.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/ds-insecure-check.sh b/scripts/ds-insecure-check.sh
new file mode 100755
index 0000000..b63ce51
--- /dev/null
+++ b/scripts/ds-insecure-check.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -x
+
+# disable anonymous access
+LDAPTLS_CACERT=ds.crt \
+ ldapsearch -H ldaps://$HOSTNAME:636 -x -D "cn=Directory Manager" -w Secret123 -b "cn=config" -s base\
+ nsslapd-allow-anonymous-access nsslapd-minssf nsslapd-require-secure-binds