Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
# dirxml_jremote -config config8000.txt
# patch bin/x86_64/dirxml_jremote < dirxml_jremote.patch
# dirxml_jremote -config config8000.txt -sp passw0rd1 passw0rd2
Author: William Vera - wvera@novell.com
Description: Add a simple validation if the password has been set.
--- dirxml_jremote.orig 2013-08-26 18:55:04.000000000 -0500
dirxml_jremote 2013-08-27 19:55:23.000000000 -0500
@@ -2,6 2,8 @@
###############################################################################
# Shell script for running DirXML Java Remote Loader
# Copyright (C) 2003, Novell Inc.
# 2013-08-27 - Modified by William Vera
# - Add a simple validation if the password has been set.
###############################################################################
###############################################################################
@@ -58,7 60,26 @@
# echo $CLASSPATH
# 2013-08-27 - wvera@novell.com
if [ -z "$RDXML_PATH" ];then
RDXML_PATH="/opt/novell/dirxml"
fi
if ls $RDXML_PATH | grep -Eq "lpwd1f45|dpwd1f45" && echo $* | grep -Eq "\-sp|\-setpasswords" ; then
while [ -z $ANSWER ]
do
read -p "It seems that you have assigned a password, you want to overwrite it?: [y/n] " ANSWER
done
case $ANSWER in
"y")
rm $RDXML_PATH/lpwd*
rm $RDXML_PATH/dpwd*;;
"n")
echo "Leaving..."
echo "Remember to launch the Remote Loader without \"-sp\" or \"-setpassords\" options to start the service.";;
*) echo "Please type \"y\" or \"n\"";;
esac
fi
# End
echo Starting java...
java -classpath $CLASSPATH com.novell.nds.dirxml.remote.loader.RemoteLoader $*
fi
-