Scripted OSB installation

When doing a scripted Oracle Service Bus installation there is a few things to consider as there is a bug in the way that the template builder works for OSB. The following is a known issue but can fairly easily be worked around.

If you experience errors like this
The current login role is not authorized to use the console action: RANDOM_URI
when logging into /sbconsole then you have to apply the following workaround.

When creating your template file, make sure to copy the following files:

$DOMAIN_HOME/security/DefaultAuthorizerInit.ldift
$DOMAIN_HOME/security/XACMLAuthorizerInit.ldift
somewhere safe.

After building the domain using your generated template it is important that you copy those two files into $DOMAIN_HOME/security/ BEFORE trying to start the domain. That should fix the above errors. Of course this mean a bit of post domain creation work in your scripting but it is easily done.