An appserver FAQ ...
By bloggerkedar on Feb 20, 2006
Anyway, here you go ...
- Short Answer: Reinstall or recreate the affected domain.
And that's the indication of a good product. No compomises with password,
blah blah blah . Now the long answer is as follows: We know that you are
a developer. You are forgetful. You have many passwords to remember. And hence,
only for you, I am posting this here. Maybe search engines index this document
better for you. So here you go:
- We assume that you have not modified the administrator's authentication realm. By default it is the file realm. In other words, a secure single way hash of your admin password is kept in a file called [domain-dir]/config/admin-keyfile, by default. This is where the authentication is performed.
- Does that click? Yes ....
- Right, you create another domain using asadmin create-domain command supplying the password of your choice at a temporary place and copy the admin-keyfile from that domain to this domain . The domain's password is no more forgotten.
- Well, this is true for Sun's Application Server 8.x onwards. For Sun's Application Server 7.x, you will have to find a file called admpw in your install-dir/lib and delete that file. Then it will accept any password till you set one.
- Don't tell anyone that I told you.