Weblogic admin don't know the admin credentials of weblogic 8.1
UI..how can he get the credentials?

Answers were Sorted based on User's Feedback



Weblogic admin don't know the admin credentials of weblogic 8.1 UI..how can he get the credent..

Answer / peravali.harsha

I think If you have admin access to solaris box, we can change the username/pwd in in boot property file and even in config.xml so that weblogic server will encrpt them and stores in a format(encrypted)

Is This Answer Correct ?    6 Yes 2 No

Weblogic admin don't know the admin credentials of weblogic 8.1 UI..how can he get the credent..

Answer / jitender

This process prints the password encrypted in
boot.properties file in plain text.

It can also help in

• Recovering database passwords, if JDBC Connection
pools are configured, from config.xml
• Recover the keystore passwords from config.xml and
obtain SSL certificates stored in the jks keystores.

This script works with Weblogic 8.x, 9.x and 10.x.

Process

1: Download the decryptpwd.py [ attached with this email ]
and put in under domain directory

2: chmod 755 decryptpwd.py

3: Take a backup of SerializedSystemIni.dat under
$domain/security directory.

4: cd $domains

5: cp $domain/security/SerializedSystemIni.dat . [ dot in
the last ]

6: keep password in a notepad found under boot.properties
for example {3DES}F4DwzfPMWv1iubP0eSIP0w==

7: run wlst.sh with decryptpwd.py. for example

. /tools/weblogic/92sp2/common/bin/wlst.sh
decryptpwd.py

8: It will load the CLASSPATH and will ask for

Enter encrypted password (Eg. {3DES}Y1fA34S...):

9: Pass the value found under Step 6 above and it will
print the password in clear text format.
---------------------
contents of decryptpwd.py are
from weblogic.security.internal import *
from weblogic.security.internal.encryption import *

# Remind user about how to use
raw_input("Please ensure SerializedSystemIni.dat is in the
current directory now, and press ENTER to continue.")

# Get encryption service
encryptionService = SerializedSystemIni.getEncryptionService
(".")
clearOrEncryptService = ClearOrEncryptedService
(encryptionService)

# Get user to enter password
pwd = raw_input("Enter encrypted password (Eg. {3DES}
Y1fA34S...): ")

# Remove unnecessary escape characters
preppwd = pwd.replace("\\", "")

# Decrypt the password
print "Recovered password is: " +
clearOrEncryptService.decrypt(preppwd)

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Weblogic Interview Questions

What is Virtual Host in WebLogic? How to create it & what is the advantage?

3 Answers   HCL,


What causes java.io exceptions in the log file? : BEA Weblogic

0 Answers  


We often see BSU when using weblogic. What is the meaning of BSU ?

0 Answers  


how can we handle if server is hang? and how to handle out of memory in weblogic?

1 Answers   HCL, L&T,


What is the weblogic server?

0 Answers  






Explain the tier architecture of a web logic server?

0 Answers  


What is polymorphism in Object Oriented Programming (OOPS) Languages? What are different types of polymorphism? 15. What is inheritance?

2 Answers   IBM,


how to deploy the application

1 Answers   Oracle, RBS,


What is a machine?

0 Answers  


What are the steps required to modify config.xml file of web logic server?

0 Answers  


What are class paths? How can they be set?

0 Answers  


how will you trouble shoot the URL issue in Web logic/ways?

0 Answers   Mphasis,


Categories