David's Technical Note

[WebLogic Administration] How to reset username and password of WebLogic AdminServer 본문

Product Engineering/2. Oracle Weblogic

[WebLogic Administration] How to reset username and password of WebLogic AdminServer

David Joo 2012. 7. 12. 14:42

How to reset WebLogic AdminServer username and password

 

follow the orders below

 

1. $DOMAIN_HOME/security 디렉터리 아래 DefaultAuthenticationInit.ldift 파일을 rename 시킨다.

1. rename DefaultAuthenticationInit.ldift file on the directory of $DOMAIN_HOME/security

 

2. $DOMAIN_HOME/servers/$서버이름/security아래 기존 boot.properties rename 시킨 text 방식의 새로운 계정과 패스워드를 입력하여 boot.properties 파일을 만든다.

2. rename boot.properties files on the directory of  $DOMAIN_HOME/servers/$SERVERNAME}/security and make new boot.properties like below with username and password as text type

username=weblogic

password=weblogic

                      

3. $DOMAIN_HOME/servers/$서버이름/data 디렉터리를 rename 한다.

3. rename the directory of $DOMAIN_HOME/servers/$SERVERNAME/data

 

4. DOMAIN_HOME/bin 아래 setDomainEnv.sh 파일을 . ./setDomainEnv.sh 실행합니다.

4. excute setDomainEnv.sh on the direcotry of DOMAIN_HOME/bin

. ./setDomainEnv.sh

 

5. 새로운 인증파일(DefaultAuthenticationInit.ldift) 생성을 위해 아래의 명령 실행한다.

5. excute the command below in order to make new DefaultAuthenticationInit.ldift file

JAVA_HOME/bin/java weblogic.security.utils.AdminAccount 새로운계정 새로운패스워드 <인증파일생성디렉터>

JAVA_HOME/bin/java weblogic.security.utils.AdminAccount weblogic weblogic ./

 

6. 새로 생성된 인증파일(DefaultAuthenticationInit.ldift) $DOMAIN_HOME/security 디렉터리로 이동시킨다.

6. move the new DefaultAuthenticationInit.ldift file to the directory of $DOMAIN_HONE/security

 

7. 서버를 재기동한다.

7. restart all instances of WebLogic Server

 

8. 새로운 계정과 패스워드로 AdminConsole 접속

8. connect to WebLogic Admin Console with new username and password