uCosminexus Application Server, Security Management Guide
Set up and associate roles with users. In addition, add reference security roles to the Enterprise Beans, servlets, and JSP.
Execute the following command to register a role to the J2EE server.
cjaddsec [server name] [-nameserver provider URL] -type role -name role name |
cjaddsec MyServer -type role -name manage
For details about the cjaddsec command, see cjaddsec (Adding Users and Roles) in the uCosminexus Application Server Command Reference Guide.
Execute the following command to add a user to a role.
cjmapsec [server name] [-nameserver provider URL] -role role name -user user name [-user user name] |
cjmapsec MyServer -role manager -user aps_m
For details about the cjmapsec command, see cjmapsec (Mapping Users and Roles) in the uCosminexus Application Server Command Reference Guide.
Define the Enterprise Bean security role settings.
EJB-JAR attribute file
Execute the following command to obtain the EJB-JAR attribute file.
cjgetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name -c EJB-JAR attribute file path |
cjgetappprop MyServer -name adder -type ejb -resname adder -c C:\home\adder_ejb.xml
Execute the following command to reflect the EJB-JAR attribute file values.
cjsetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name -c EJB-JAR attribute file path |
cjsetappprop MyServer -name adder -type ejb -resname adder -c C:\home\adder_ejb.xml
The following table lists the Enterprise Bean security role (<security-role>) settings.
| Item | Required | Tag name |
|---|---|---|
| Description | O | <description> |
| Role name | R | <role-name> |
| Security role name | O | <linked-to> |
Legend:
R: Required, O: Optional
For details about the property settings, see subsection 3.3.1 Specification of the EJB-JAR attribute file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
Define the servlets and JSP security role settings.
WAR attribute file
Execute the following command to obtain the WAR attribute file.
cjgetappprop [server name] [-nameserver provider URL] -name J2EE application name -type war -resname WAR display name -c WAR attribute file path |
cjgetappprop MyServer -name adder -type war -resname adder -c C:\home\adder_war.xml
Execute the following command to reflect the WAR attribute file values.
cjsetappprop [server name] [-nameserver provider URL] -name J2EE application name -type war -resname WAR display name -c WAR attribute file path |
cjsetappprop MyServer -name adder -type war -resname adder -c C:\home\adder_war.xml
The following table lists the Web application (servlets and JSP) security role reference (<security-role>) settings.
| Item | Required | Tag name |
|---|---|---|
| Description | O | <description> |
| Role name | R | <role-name> |
| Security role name | O | <linked-to> |
Legend:
R: Required, O: Optional
For details about the property settings, see subsection 3.7.1 Specification of the WAR attribute file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd