An appserver FAQ ...

I receive a lot of e-mail. There are quite a few questions and I try to respond to them especially if they pertain to what I know and what I know for sure :). E-mail is a pain and some gain. The knowledge transfer is good, but time consuming and it evaporates fast. Referenced knowledge base is a good thing and hence I have started this blog from today. It is about FAQ about Sun's Application Server I will keep on updating the same blog till it hits Roller's maximum size of a blog limit. Is there a limit like this? I hope not.

Anyway, here you go ...

Questions (A's)

  1. I forgot appserver's admin password. What do I do?

 

Answers (Q's)

  1. 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:
    1. 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.
    2. Does that click? Yes ....
    3. 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.
    4. 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.
    5. Don't tell anyone that I told you. :)

    [back]

 

Comments:

Post a Comment:
Comments are closed for this entry.
About

Welcome to my blog where mostly my work related thoughts are expressed.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today