From a3d511dc12063d4ba9fe1d1c62f6c2e7679e9024 Mon Sep 17 00:00:00 2001 From: karmst Date: Thu, 2 Jan 2025 08:31:12 -0500 Subject: [PATCH] Added example files --- example/USER_TO_ROLE.xml | 20 ++++++++++++++++++++ example/linux_runner.sh | 4 ++++ example/linux_verify.sh | 4 ++++ example/msalah.csv | 2 ++ example/props_USER_TO_ROLE.conf | 8 ++++++++ 5 files changed, 38 insertions(+) create mode 100644 example/USER_TO_ROLE.xml create mode 100644 example/linux_runner.sh create mode 100644 example/linux_verify.sh create mode 100644 example/msalah.csv create mode 100644 example/props_USER_TO_ROLE.conf diff --git a/example/USER_TO_ROLE.xml b/example/USER_TO_ROLE.xml new file mode 100644 index 0000000..8c60948 --- /dev/null +++ b/example/USER_TO_ROLE.xml @@ -0,0 +1,20 @@ + + + + + + + grant + USER_TO_ROLE + USER_DN + DESC + + + + ROLE_DN + + + + + + diff --git a/example/linux_runner.sh b/example/linux_runner.sh new file mode 100644 index 0000000..34028a6 --- /dev/null +++ b/example/linux_runner.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +JAVA=/usr/local/bin/java +$JAVA -cp lib/commons-codec-1.17.1.jar:lib/commons-csv-1.12.0.jar:lib/commons-io-2.18.0.jar:lib/jcommander-1.82.jar:lib/soapClient.jar com.belkast.soap.webService "$@" diff --git a/example/linux_verify.sh b/example/linux_verify.sh new file mode 100644 index 0000000..6860f00 --- /dev/null +++ b/example/linux_verify.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +JAVA=/usr/local/bin/java +$JAVA -cp lib/commons-codec-1.17.1.jar:lib/commons-csv-1.12.0.jar:lib/commons-io-2.18.0.jar:lib/jcommander-1.82.jar:lib/soapClient.jar com.belkast.soap.userVerify diff --git a/example/msalah.csv b/example/msalah.csv new file mode 100644 index 0000000..53cc162 --- /dev/null +++ b/example/msalah.csv @@ -0,0 +1,2 @@ +USER_DN,ROLE_DN,DESC +"cn=msalah,ou=admins,o=belkast","cn=TestRole,o=belkast","Test Load" diff --git a/example/props_USER_TO_ROLE.conf b/example/props_USER_TO_ROLE.conf new file mode 100644 index 0000000..8960040 --- /dev/null +++ b/example/props_USER_TO_ROLE.conf @@ -0,0 +1,8 @@ +SHIM_URL = https://test.mycompany.com:8443/IDMProv/role/service +PASSWORD = PT9TKHwFgJCxATJtAAMtMwtIF0UjFal6fo5riBN+ExY= +USERNAME = cn=keitha,ou=active,ou=users,o=belkast +XML_FILE = USER_TO_ROLE.xml +INPUT_FILE = msalah.csv +SSL = true +JAVA_KS_LOCATION = ldap.keystore +JAVA_KS_PASSWORD = changeit