Java App Servers
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
What is in the "Installed Product" section of the "versionInfo" command script output?
- On Windows systems, execute the versionInfo.bat command script, e.g.,
 > D:\IBM\WebSphere\AppServer
- On *ix systems, execute the versionInfo.sh command script, e.g.,
 # /opt/IBM/WebSphere/AppServ
- What is output when you execute the following wsadmin script?
1. Copy the following to "listUsers.py" in some known location (e.g., C:\temp)
try :
print AdminTask.listUsersForNamingRoles()
except :
print "Error: AdminTask.listUsersForNamingRoles() doesn't appear to be available."
2. Execute the script using the wsadmin command utility.
 - On Windows systems, the command should look like:
  # D:\IBM\WebSphere\AppServer
 - On *ix systems, the command should look like:
  # /opt/IBM/WebSphere/AppServ
What is output?
 Excellent.
 Since you are using 8.0, that helps me to know more about what might be available for you to use.
>Â why do I need to run the script that you gave?
 It helps me to understand your environment better.
 Currently, I don't have that kind of role configured, and I wanted to work with you to help you get an answer to your question.
>Â Isn't this information stored in some properties file like the security.xml.
 Maybe.  Since, as I indicated, I don't have or use roles in my test environment, I don't have the quick and easy answer to that question.  But, I'm willing to work with you to not only get the answer, but also learn something at the same time.
 Does that make sense?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
On the other hand, we could word together to see how to do it with wsadmin scripts if that is what you would like to do.
The way that I interpreted your question lead me to believe that you wanted to figure out how to manipulate different roles in your environment using scripting.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
{CosNamingWrite=[], CosNamingDelete=[], CosNamingCreate=[], CosNamingRead=[]}
This is the result of "-conntype none" on the command line.
The output, i.e.,
{CosNamingWrite=[], CosNamingDelete=[], CosNamingCreate=[], CosNamingRead=[]}
is identical to what I have in my environment which is not configured to use LDAP.
So, the next question is:
What, exactly, do you mean when you say:
>Â The user can login to the console but cannot perform the operator's function like start/stop servers.
No authentication / authorization is performed during starting of a server. Â So, I don't have to have any role to execute the following commands:
startManager
startNode
startServer
It is only during the stopping that the authentication / authorization is performed and verified.
From the Admin Console, if we select "Users and Groups" -> "Administrative user roles", the corresponding wsadmin commands that are issued to list the users shown here are:
AdminTask.listUserIDsOfAuthorizationGroup()
AdminTask.listAuditUserIDsOfAuthorizationGroup()
The next question is:
What exactly are you doing that should be using the appropriate role, and how is it failing?
I would expect you to be doing something like:
stopServer server1 -profileName AppSrv01
or, on *ix:
./stopServer.sh server1 -profileName AppSrv01
With security enabled, I would expect a dialog box to be displayed, prompting you for the userid &Â password to be used.
Is this what is happening?
How is it failing?
What messages are being displayed?
A really valuable document is "WebSphere Application Server V7.0 Security Guide"
http://www.redbooks.ibm.com/redbooks/pdfs/sg247660.pdfÂ






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I presume that you do have a Deployment Manager though.
Right?
Are you trying to create a stand-alone AppServer, or a federated one?
Creating cell profiles
 http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.installation.nd.doc%2Finfo%2Fae%2Fae%2Ftpro_instancescell.html&resultof=%22profile%22%20%22profil%22%20%22creation%22
Creating application server profiles
 http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.installation.nd.doc%2Finfo%2Fae%2Fae%2Ftpro_instancessaappserv.html
I am aware of the procedures you described.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
For me, this means that the file is stored in a file (something like):
C:\IBM\WebSphere\AppServer






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Good luck &Â have a great day.
Java App Servers
--
Questions
--
Followers
Top Experts
Java application servers that support the Java EE platform and features include JOnAS from Object Web, WildFly (formerly JBoss AS) from JBoss, Geronimo from Apache, TomEE from Apache, Resin Java Application Server from Caucho Technology, Blazix from Desiderata Software, Enhydra Server from Enhydra.org, and GlassFish from Oracle. Commercial Java app servers include WebLogic by Oracle, WebSphere from IBM and the open source JBoss Enterprise Application Platform (JBoss EAP) by Red Hat.