File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Password Callback in Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Password Callback in Weblogic" Watch "Password Callback in Weblogic" New topic

Password Callback in Weblogic

Nikita Rai

Joined: Jun 30, 2005
Posts: 11
I created a domain in weblogic with user name and password as weblogic.
I went to the weblogic console and changed the password as weblogic1.Now whenever I access the console the following error is occuring

Throwing FailedLoginException(Authentication Failed: User weblogic bad password. )

Any ideas as to why this is occuring. Thanks for the same

acallback[1] = new PasswordCallback("password: ", false)
PasswordCallback passwordcallback = (PasswordCallback)acallback[1];
char ac[] = passwordcallback.getPassword();

Also any ideas as to from where does the above pick the password
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
It's not clear whether you are able to login or not. Generally the password is stored in internal LDAP. You can see the content of ldap in ldift files stored in your domain directory. Password is hashed and stored so you can't see the clear text however, under your domain\server directory you will find ldap directory which contains log and backup entries. You can try to figure out from the log whether the update has been carried out. It's not going to be easy to recover or fix expect to restore from the backup directory or creating a new admin user.

To understand how PasswordCallback is populated you need to look at your CallbackHandler implementation, instance of this calls is passed from LoginContext to LoginModule. LoginModule creates instance of PasswordCallback and NameCallback objects and passes as argument to CallbackHandler.handle(...). This method takes cares of populating the NameCallback and PasswordCallback and return those objects to LoginModule.
Nikita Rai

Joined: Jun 30, 2005
Posts: 11
Thanks for the reply. I am able to login to the console. But I keep getting the entry in the log file.

Throwing FailedLoginException(Authentication Failed: User weblogic bad password. )

So I wanted to know as to what might be the problem even though I am able to login to the application
I agree. Here's the link:
subject: Password Callback in Weblogic
It's not a secret anymore!