The specific problem with step 5-7 is that it WILL NOT WORK for the admin password (AS_ADMIN_PASSWORD). It will also not work for the master password (AS_ADMIN_MASTERPASSWORD). However, it will work for other passwords. This example, in steps 6 and 7, is trying to start a domain that requires a password using a password alias. As stated in the description, the recommended way to do this is to use the "asadmin login" command. Since this section is about creating a password alias, it doesn't make sense to have an example about using the asadmin login command here.
To provide an example for using a password alias in the password file that is passed to asadmin, it would be better to base the example on the create-file-user command and the AS_ADMIN_USERPASSWORD variable. For example, if one wanted to create several users, all with the same password, one could do the following:
Steps 1-4 are the same.
5. Add the alias to a password file.
In the password file, for example, passwords.txt, add the following line: AS_ADMIN_USERPASSWORD=$
, where user-password-alias is the new password alias.
6. Run the create-file-user command using the file.
asadmin --passwordfile passwords.txt create-file-user user1