Added example files

This commit is contained in:
Keith Armstrong 2025-01-02 08:31:12 -05:00
parent 04cd101cc6
commit a3d511dc12
5 changed files with 38 additions and 0 deletions

20
example/USER_TO_ROLE.xml Normal file
View File

@ -0,0 +1,20 @@
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/role/service">
<soapenv:Header/>
<soapenv:Body>
<ser:requestRolesAssignmentRequest>
<!--Optional:-->
<ser:assignRequest>
<ser:actionType>grant</ser:actionType>
<ser:assignmentType>USER_TO_ROLE</ser:assignmentType>
<ser:identity>USER_DN</ser:identity>
<ser:reason>DESC</ser:reason>
<ser:roles>
<!--Zero or more repetitions:-->
<ser:dnstring>
<ser:dn>ROLE_DN</ser:dn>
</ser:dnstring>
</ser:roles>
</ser:assignRequest>
</ser:requestRolesAssignmentRequest>
</soapenv:Body>
</soapenv:Envelope>

4
example/linux_runner.sh Normal file
View File

@ -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 "$@"

4
example/linux_verify.sh Normal file
View File

@ -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

2
example/msalah.csv Normal file
View File

@ -0,0 +1,2 @@
USER_DN,ROLE_DN,DESC
"cn=msalah,ou=admins,o=belkast","cn=TestRole,o=belkast","Test Load"
1 USER_DN ROLE_DN DESC
2 cn=msalah,ou=admins,o=belkast cn=TestRole,o=belkast Test Load

View File

@ -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