Portal Server 7: format of password_file for command "psadmin"

I need to deploy a portlet on Sun Java System Portal Server 7, which is included into Sun Java Enterprise System 2005Q4.

I've installed Sun Java Enterprise System successfully and started Sun Application Server 8.1, Web Server 6.1, Directory Server, Administration Server successfully (I see that all these servers work correctly and I can get responses from Sun Application Server and Web Server).

Then I tried to deploy a portlet on Portal Server, but format of the appropriate command is:

psadmin deploy-portlet --adminuser {admin_user} --passwordfile {password_file} ...

For {admin_user} I use a value like this "uid=amAdmin,ou=People,dc=server_name,dc=com", but I don't know, which format should have the required {password_file}.

I couldn't find an answer to this question in documentation "Sun Java System Portal Server 7".

I've tried to use some files (for example, /var/opt/SUNWappserver/domains/domain1/config/domain-passwords), but "psadmin" refused my attempts with message "Error: Authentication failed: Invalid user ID and password. Try again".

I couldn't find an answer to this question on forums.

Please, could someone help me with this trouble: which format should have the required {password_file}?

[1276 byte] By [alexey.petrova] at [2007-11-26 20:07:12]
# 1

Create a file(anyname) and add amadmin password in it.

For ex if my amadmin password is "bingo" run on command prompt

echo bingo > /tmp/passwordfile

then run the deploy portlet command

./psadmin deploy-portlet -u amadmin -f /tmp/passwordfile -p portal1 -g <location of war file>

SiddeshKamatha at 2007-7-9 23:09:12 > top of Java-index,Web & Directory Servers,Portal Servers...