• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Password Callback in Weblogic

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic