웹로직 admin 비밀번호 초기화
Products/WebLogic Server View Comments
1. 아래 내용을 domain home위치에서 쉘스클립트로 작성
2. 아래 스크립트에서 ADMIN_NAME, ADMIN_PASS, ADMIN_SERVER_NAME을 환경에 맞게 수정
3. 스클립트 실행
###############################################################################
#
# WebLogic 9.x 10.x 11g Admin Account Restore cmd script!
#
# 기존 패스워드 변경 또는 신규 계정으로 변경 가능.
#
# 데이터 입력 부분에 username, password, 어드민 서버 이름을 입력.
#
###############################################################################
ADMIN_NAME=weblogic
export ADMIN_NAME
ADMIN_PASS=weblogic
export ADMIN_PASS
ADMIN_SERVER_NAME=AdminServer
export ADMIN_SERVER_NAME
###############################################################################
#
# Creating New Admin Account!!
#
###############################################################################
. ./bin/setDomainEnv.sh
echo "Realm Restore started..."
echo "ADMIN_NAME=$ADMIN_NAME"
echo "ADMIN_PASS=$ADMIN_PASS"
echo "DOMAIN_HOME=$DOMAIN_HOME"
rm -rf ./boot.properties
if [ -f ./servers/$ADMIN_SERVER_NAME/security/boot.properties ]; then
rm -rf ./servers/$ADMIN_SERVER_NAME/security/boot.properties
fi
rm -rf ./security/DefaultAuthenticatorInit.ldift
java weblogic.security.utils.AdminAccount $ADMIN_NAME $ADMIN_PASS .
rm -rf ./servers/$ADMIN_SERVER_NAME/data/ldap
mv ./DefaultAuthenticatorInit.ldift ./security/DefaultAuthenticatorInit.ldift
echo username=$ADMIN_NAME>boot.properties
echo password=$ADMIN_PASS>>boot.properties
if [ ! -d ./servers/$ADMIN_SERVER_NAME/security ]; then
mkdir ./servers/$ADMIN_SERVER_NAME/security
fi
cp ./boot.properties ./servers/$ADMIN_SERVER_NAME/security/boot.properties
echo "Admin Account Restore success!!"
'Products > WebLogic Server' 카테고리의 다른 글
WebLogic Administration Console SSL 적용 방법 (0) | 2012.08.10 |
---|---|
Admin Server 실행 후 Managed Server를 실행 시키는 스크립트 (0) | 2012.08.02 |
[WebLogic]Session Timeout 설정 (0) | 2012.04.07 |
[WebLogic]Web Application Session 공유범위 이해 및 설정 (0) | 2012.04.07 |
WebLogic의 HTTP Publish-Subscribe 서버 사용하기 (0) | 2012.03.27 |
Recent Comments