Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kerberos #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion createDockerImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


if [[ $# -lt 1 || $# -gt 2 ]]; then
echo "Usage: ./createDockerImage.sh <path/to/bwce-runtime-2.3.1.zip> <Tag>"
echo "Usage: ./createDockerImage.sh <path/to/bwce-runtime-2.3.4.zip> <Tag>"
printf "\t %s \t\t %s \n\t\t\t\t %s \n" "Location of runtime zip (bwce-runtime-<version>.zip)"
printf "\t %s \t\t %s \n\t\t\t\t %s \n" "Tag. Eg: bwce:v2.0.0"
exit 1
Expand Down
17 changes: 17 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,20 @@ setupThirdPartyInstallationEnvironment()
fi
}

setupKerberosFiles()
{
BWCE_CONFIG_DIR=`echo $BWCE_HOME/tibco.home/bw*/*`/config
if [ -f /krb5.conf ]; then
mv $BWCE_CONFIG_DIR/krb5.conf $BWCE_CONFIG_DIR/krb5.conf.orig
cp -f /krb5.conf $BWCE_CONFIG_DIR/krb5.conf # User provided profile
fi

if [ -f /login.conf ]; then
mv $BWCE_CONFIG_DIR/login.conf $BWCE_CONFIG_DIR/login.conf.orig
cp -f /login.conf $BWCE_CONFIG_DIR/login.conf # User provided profile
fi
}

appnodeConfigFile=$BWCE_HOME/tibco.home/bw*/*/config/appnode_config.ini
POLICY_ENABLED="false"
checkJAVAHOME
Expand Down Expand Up @@ -411,6 +425,9 @@ else
cp -f /tmp/META-INF/$BW_PROFILE $BWCE_HOME/tmp/pcf.substvar
fi

#Setup Kerberos files if they exist
setupKerberosFiles

$JAVA_HOME/bin/java -cp `echo $BWCE_HOME/tibco.home/bw*/*/system/shared/com.tibco.bwce.profile.resolver_*.jar`:`echo $BWCE_HOME/tibco.home/bw*/*/system/shared/com.tibco.tpcl.com.fasterxml.jackson_*`/*:`echo $BWCE_HOME/tibco.home/bw*/*/system/shared/com.tibco.bw.tpcl.org.codehaus.jettison_*`/*:$BWCE_HOME:$JAVA_HOME/lib -DBWCE_APP_NAME=$bwBundleAppName com.tibco.bwce.profile.resolver.Resolver

STATUS=$?
Expand Down