Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/resource/service">
<soapenv:Header/>
<soapenv:Body>
<ser:refreshCodeMapRequest>
<!--Optional:-->
<ser:entitlementDN>?</ser:entitlementDN>
</ser:refreshCodeMapRequest>
</soapenv:Body>
</soapenv:Envelope>
### Function: refreshCodeMap
# Usage:
# refreshCodeMap $username $password $rbpm_url $output_file $entitlementDN
#
refreshCodeMap()
{
USAGE="Function Usage:
refreshCodeMap username password rbpm_url entitlementDN
This will refresh the code map table for only the specified IDM driver.
entitlementDN should be the DN of the Driver object in full LDAP format to root
of the tree, but no need for T=TREENAME.
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv";
# Initial Parameters check
if | -z "$2" || -z "$3" || -z "$4" || -z "$5"
then
echo "$USAGE"
return 1
fi
# Setup for the SOAP call
URL="${3}/resource/service"
ACTION="SOAPAction: 'http://www.novell.com/resource/service/refreshCodeMap'"
# Build SOAP XML envelope and call to be issued
POST="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://www.novell.com/resource/service'>\
<soapenv:Header/>\
<soapenv:Body>\
<ser:refreshCodeMapRequest>\
<ser:entitlementDN>${4}</ser:entitlementDN>\
</ser:refreshCodeMapRequest>\
</soapenv:Body>\
</soapenv:Envelope>"
### Function: refreshCodeMap
# Usage:
# refreshCodeMap $username $password rbpm_url $output_file $entitlementDN
#
refreshCodeMap()
{
USAGE="Function Usage:
refreshCodeMap username password rbpm_url output_file entitlementDN
This will refresh the code map table for only the specified IDM driver.
driverDN should be the DN of the Driver object in full LDAP format to root
of the tree, but no need for T=TREENAME.
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv";
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
dbgparams=$#
dbgparam=1
while [ "$dbgparam" -le "$dbgparams" ]
do
echo -n "Parameter "
echo -n \$$dbgparam
echo -n " = "
eval echo \$$dbgparam
(( dbgparam ))
done
fi
# Initial Parameters check
if | -z "$2" || -z "$3" || -z "$4" || -z "$5"
then
echo "$USAGE"
return 1
fi
if "X$2" = "X-W"
then
read -sp "Please enter the password for user $1: " SENHA
echo
else
SENHA=$2
fi
# Setup for the SOAP call
URL="${3}/resource/service"
ACTION="SOAPAction: 'http://www.novell.com/resource/service/refreshCodeMap'"
CTYPE='Content-Type: text/xml;charset=UTF-8'
# Build SOAP XML envelope and call to be issued
POST="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://www.novell.com/resource/service'>\
<soapenv:Header/>\
<soapenv:Body>\
<ser:refreshCodeMapRequest>\
<ser:entitlementDN>${4}</ser:entitlementDN>\
</ser:refreshCodeMapRequest>\
</soapenv:Body>\
</soapenv:Envelope>"
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
echo
echo POST data:
echo $POST
echo
fi
# Issue the request
curl $_CURL_OPTIONS -u "$1:$SENHA" -H "$CTYPE" -H "$ACTION" -d "$POST" "$URL" -o "$4"
}
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/resource/service">
<soapenv:Header/>
<soapenv:Body>
<ser:requestResourceGrantRequest>
<!--Optional:-->
<ser:resourceTarget>?</ser:resourceTarget>
<!--Optional:-->
<ser:requester>?</ser:requester>
<!--Optional:-->
<ser:userTarget>?</ser:userTarget>
<!--Optional:-->
<ser:reasonForRequest>?</ser:reasonForRequest>
<!--Optional:-->
<ser:requestParams>
<!--Zero or more repetitions:-->
<ser:resourcerequestparam>
<ser:name>?</ser:name>
<ser:value>?</ser:value>
</ser:resourcerequestparam>
</ser:requestParams>
<!--Optional:-->
<ser:correlationId>?</ser:correlationId>
</ser:requestResourceGrantRequest>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/resource/service">
<soapenv:Header/>
<soapenv:Body>
<ser:requestResourceRevokeRequest>
<!--Optional:-->
<ser:resourceTarget>?</ser:resourceTarget>
<!--Optional:-->
<ser:requester>?</ser:requester>
<!--Optional:-->
<ser:userTarget>?</ser:userTarget>
<!--Optional:-->
<ser:reasonForRequest>?</ser:reasonForRequest>
<!--Optional:-->
<ser:requestParams>
<!--Zero or more repetitions:-->
<ser:resourcerequestparam>
<ser:name>?</ser:name>
<ser:value>?</ser:value>
</ser:resourcerequestparam>
</ser:requestParams>
<!--Optional:-->
<ser:instanceGuid>?</ser:instanceGuid>
<!--Optional:-->
<ser:correlationId>?</ser:correlationId>
</ser:requestResourceRevokeRequest>
</soapenv:Body>
</soapenv:Envelope>
<ser:instanceGuid>?</ser:instanceGuid>
### Function: requestResourceGrant
# Usage:
# requestResourceGrant $username $password $rbpm_url $output_file $resourceDN $requesterDN $userTargetDN $reason
# $param-name $param-value
#
requestResourceGrant()
{
USAGE="Function Usage:
requestResourceGrant username password rbpm_url output_file resourceDN requesterDN
userTargetDN reason param-name param-value
This will Grant a Resource assignment to a user. All DN's in LDAP format.
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv";
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
dbgparams=$#
dbgparam=1
while [ "$dbgparam" -le "$dbgparams" ]
do
echo -n "Parameter "
echo -n \$$dbgparam
echo -n " = "
eval echo \$$dbgparam
(( dbgparam ))
done
fi
# Initial Parameters check
if | -z "$2" || -z "$3" || -z "$4" || -z "$5" || -z "$6" || -z "$7" || -z "$8"
then
echo "$USAGE"
return 1
fi
if "X$2" = "X-W"
then
read -sp "Please enter the password for user $1: " SENHA
echo
else
SENHA=$2
fi
# Setup for the SOAP call
URL="${3}/resource/service"
ACTION="SOAPAction: 'http://www.novell.com/resource/service/requestResourceGrant'"
CTYPE='Content-Type: text/xml;charset=UTF-8'
# Build SOAP XML envelope and call to be issued
POST="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://www.novell.com/resource/service'>\
<soapenv:Header/>\
<soapenv:Body>\
<ser:requestResourceGrantRequest>\
<ser:resourceTarget>${5}</ser:resourceTarget>\
<ser:requester>${6}</ser:requester>\
<ser:userTarget>${7}</ser:userTarget>\
<ser:reasonForRequest>8</ser:reasonForRequest>\
<ser:requestParams>"
if "X$9" != "X"
then
POST="${POST}<ser:resourcerequestparam>\
<ser:name>${9}</ser:name>\
<ser:value>${10}</ser:value>\
</ser:resourcerequestparam>"
fi
POST="${POST}</ser:requestResourceGrantRequest>\
</soapenv:Body>\
</soapenv:Envelope>"
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
echo
echo POST data:
echo $POST
echo
fi
# Issue the request
curl $_CURL_OPTIONS -u "$1:$SENHA" -H "$CTYPE" -H "$ACTION" -d "$POST" "$URL" -o "$4"
}
### Function: requestResourceRevoke
# Usage:
# requestResourceRevoke $username $password $rbpm_url $output_file $resourceDN $requesterDN $userTargetDN $reason
# $param-name $param-value
#
requestResourceRevoke()
{
USAGE="Function Usage:
requestResourceRevoke username password rbpm_url output_file resourceDN requesterDN
userTargetDN reason param-name param-value
This will Revoke a Resource assignment to a user. All DN's in LDAP format.
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv";
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
dbgparams=$#
dbgparam=1
while [ "$dbgparam" -le "$dbgparams" ]
do
echo -n "Parameter "
echo -n \$$dbgparam
echo -n " = "
eval echo \$$dbgparam
(( dbgparam ))
done
fi
# Initial Parameters check
if | -z "$2" || -z "$3" || -z "$4" || -z "$5" || -z "$6" || -z "$7" || -z "$8"
then
echo "$USAGE"
return 1
fi
if "X$2" = "X-W"
then
read -sp "Please enter the password for user $1: " SENHA
echo
else
SENHA=$2
fi
# Setup for the SOAP call
URL="${3}/resource/service"
ACTION="SOAPAction: 'http://www.novell.com/resource/service/requestResourceRevoke'"
CTYPE='Content-Type: text/xml;charset=UTF-8'
# Build SOAP XML envelope and call to be issued
POST="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://www.novell.com/resource/service'>\
<soapenv:Header/>\
<soapenv:Body>\
<ser:requestResourceRevokeRequest>\
<ser:resourceTarget>${5}</ser:resourceTarget>\
<ser:requester>${6}</ser:requester>\
<ser:userTarget>${7}</ser:userTarget>\
<ser:reasonForRequest>8</ser:reasonForRequest>\
<ser:requestParams>"
if "X$9" != "X"
then
POST="${POST}<ser:resourcerequestparam>\
<ser:name>${9}</ser:name>\
<ser:value>${10}</ser:value>\
</ser:resourcerequestparam>"
fi
POST="${POST}</ser:requestResourceRevokeRequest>\
</soapenv:Body>\
</soapenv:Envelope>"
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
echo
echo POST data:
echo $POST
echo
fi
# Issue the request
curl $_CURL_OPTIONS -u "$1:$SENHA" -H "$CTYPE" -H "$ACTION" -d "$POST" "$URL" -o "$4"
}