Meaningless Drivel is fun!*
The moose likes BEA/Weblogic and the fly likes Accessing Admin User Security Credentials in a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Accessing Admin User Security Credentials in a Servlet" Watch "Accessing Admin User Security Credentials in a Servlet" New topic
Author

Accessing Admin User Security Credentials in a Servlet

Ravi kiran
Greenhorn

Joined: Nov 02, 2004
Posts: 5
Hi All,
I am a longtime lurker and first time poster. I am writing servlet to access MBeans using MBeanHome, but I don't want to hardcode weblogic Admin user name and password for setting the jndi context. Is it possible to Access default realm and super user(Example User/Password: weblogic/weblogic) Security Credentials in a Servlet. Any help in this regard is realy appreciated.

TIA
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,

As far as I know that's not possible. I suggest you to use a properties file to load the username and password or even an env entry on the web.xml parameter, both ways you're not hard coding the username password. You may also consider using encription to keep them protected.
 
 
subject: Accessing Admin User Security Credentials in a Servlet
 
Similar Threads
How to change user credentials when accessing DB
WebSphere Security Settings
Weblogic Administration console
tomcat6-admin
Weblogic SP6 Basic Authentication Problem