##Find the shibboleth components
-if [ ! -n "$SHIB_HOME" ] ; then
- echo "Error: SHIB_HOME is not defined."
+if [ ! -n "$IDP_HOME" ] ; then
+ echo "Error: IDP_HOME is not defined."
exit
fi
## Where log4j config file is
-LOG_CONFIG=$SHIB_HOME/conf/log4j.properties
+LOG_CONFIG=$IDP_HOME/etc/log4j.properties
-if [ ! \( -f "$SHIB_HOME/lib/shib-util.jar" -a -r "$SHIB_HOME/lib/shib-util.jar" \) ] ; then
+if [ ! \( -f "$IDP_HOME/lib/shib-util.jar" -a -r "$IDP_HOME/lib/shib-util.jar" \) ] ; then
echo "Error: Cannot find the shibboleth jar (shib-util.jar)."
echo " If you downloaded the shibboleth source, you need to run \"ant build-util\""
exit
SHIB_UTIL_CLASSPATH=$CLASSPATH
fi
-DIRLIBS=${SHIB_HOME}/lib/*.jar
+DIRLIBS=${IDP_HOME}/lib/*.jar
for i in ${DIRLIBS}
do
# if the directory is empty, then it will return the input string
fi
fi
done
-SHIB_UTIL_CLASSPATH=$SHIB_UTIL_CLASSPATH:"$SHIB_HOME"
+SHIB_UTIL_CLASSPATH=$SHIB_UTIL_CLASSPATH:"$IDP_HOME"
##Here we go
$JAVACMD -Dlog4j.configuration="$LOG_CONFIG" -cp $SHIB_UTIL_CLASSPATH edu.internet2.middleware.shibboleth.utils.ExtKeyTool "$@"
)
REM The root of the Shibboleth package tree, relative to the run directory
-if not defined SHIB_HOME (
- set SHIB_HOME=.
+if not defined IDP_HOME (
+ echo Error: IDP_HOME is not defined.
+ exit /b
)
-set ENDORSED=%SHIB_HOME%\endorsed
+set ENDORSED=%IDP_HOME%\endorsed
REM Where log4j config file is
-set LOG_CONFIG=%SHIB_HOME%\conf\log4j.properties
+set LOG_CONFIG=%IDP_HOME%\etc\log4j.properties
-if not exist %SHIB_HOME%\lib\shib-util.jar (
+if not exist %IDP_HOME%\lib\shib-util.jar (
echo Error: Cannot find shib-util.jar
echo If you downloaded the shibboleth source, you need to run "ant build-util"
exit /b
)
REM add in the dependency .jar files
-for %%i in (%SHIB_HOME%\lib\*.jar) do (
- call %SHIB_HOME%\bin\cpappend.bat %%i
+for %%i in (%IDP_HOME%\lib\*.jar) do (
+ call %IDP_HOME%\bin\cpappend.bat %%i
)
REM Here we go
##Find the shibboleth components
+if [ -n "$IDP_HOME" ] ; then
+ SHIB_HOME=$IDP_HOME
+fi
+if [ -n "$SP_HOME" ] ; then
+ SHIB_HOME=$SP_HOME
+fi
if [ ! -n "$SHIB_HOME" ] ; then
- SHIB_HOME=.
+ echo "Error: Neither IDP_HOME nor SP_HOME is defined."
+ exit
fi
+
ENDORSED=$SHIB_HOME/endorsed
if [ ! \( -f "$SHIB_HOME/lib/shib-util.jar" -a -r "$SHIB_HOME/lib/shib-util.jar" \) ] ; then
exit /b
)
-REM The root of the Shibboleth package tree, relative to the run directory
+if defined IDP_HOME (
+ set SHIB_HOME=%IDP_HOME%
+)
+if defined SP_HOME (
+ set SHIB_HOME=%SP_HOME%
+)
if not defined SHIB_HOME (
+ echo Error: Neither IDP_HOME nor SP_HOME is defined.
+ exit /b
set SHIB_HOME=.
)
##Find the shibboleth components
-if [ ! -n "$SHIB_HOME" ] ; then
- echo "Error: SHIB_HOME is not defined."
+if [ ! -n "$IDP_HOME" ] ; then
+ echo "Error: IDP_HOME is not defined."
exit
fi
-if [ ! \( -f "$SHIB_HOME/lib/shib-util.jar" -a -r "$SHIB_HOME/lib/shib-util.jar" \) ] ; then
+if [ ! \( -f "$IDP_HOME/lib/shib-util.jar" -a -r "$IDP_HOME/lib/shib-util.jar" \) ] ; then
echo "Error: Cannot find the shibboleth jar (shib-util.jar)."
echo " If you downloaded the shibboleth source, you need to run \"ant build-util\""
exit
fi
-ENDORSED=$SHIB_HOME/endorsed/
+ENDORSED=$IDP_HOME/endorsed/
##Grab all the dependencies
if [ -n "$CLASSPATH" ] ; then
SHIB_UTIL_CLASSPATH=$CLASSPATH
fi
-DIRLIBS=${SHIB_HOME}/lib/*.jar
+DIRLIBS=${IDP_HOME}/lib/*.jar
for i in ${DIRLIBS}
do
# if the directory is empty, then it will return the input string
fi
done
-DIRLIBS=${SHIB_HOME}/webApplication/WEB-INF/lib/*.jar
+DIRLIBS=${IDP_HOME}/webApplication/WEB-INF/lib/*.jar
for i in ${DIRLIBS}
do
# if the directory is empty, then it will return the input string
fi
done
-SHIB_UTIL_CLASSPATH=$SHIB_UTIL_CLASSPATH:"$SHIB_HOME"
+SHIB_UTIL_CLASSPATH=$SHIB_UTIL_CLASSPATH:"$IDP_HOME"
##Here we go
$JAVACMD -Djava.endorsed.dirs="$ENDORSED" -cp $SHIB_UTIL_CLASSPATH edu.internet2.middleware.shibboleth.utils.ResolverTest "$@"
)
REM The root of the Shibboleth package tree, relative to the run directory
-if not defined SHIB_HOME (
- set SHIB_HOME=.
+if not defined IDP_HOME (
+ echo Error: IDP_HOME is not defined.
+ exit /b
)
-set ENDORSED=%SHIB_HOME%\endorsed
+set ENDORSED=%IDP_HOME%\endorsed
-if not exist %SHIB_HOME%\lib\shib-util.jar (
+if not exist %IDP_HOME%\lib\shib-util.jar (
echo Error: Cannot find shib-util.jar
echo If you downloaded the shibboleth source, you need to run "ant build-util"
exit /b
)
REM add in the dependency .jar files
-for %%i in (%SHIB_HOME%\lib\*.jar) do (
- call %SHIB_HOME%\bin\cpappend.bat %%i
+for %%i in (%IDP_HOME%\lib\*.jar) do (
+ call %IDP_HOME%\bin\cpappend.bat %%i
)
-for %%i in (%SHIB_HOME%\webApplication\WEB-INF\lib\*.jar) do (
- call %SHIB_HOME%\bin\cpappend.bat %%i
+for %%i in (%IDP_HOME%\webApplication\WEB-INF\lib\*.jar) do (
+ call %IDP_HOME%\bin\cpappend.bat %%i
)
REM Here we go