cancel
Showing results for 
Search instead for 
Did you mean: 

User configuration on NetWeaver AS 7.10 / AS Java 7.10 (Java Stack only)

johannes_gilbert
Employee
Employee
0 Kudos

Hi everybody.

I'm just a beginner and have only very few knowledge about configuring the AS. I downloaded and installed the SAP NetWeaver Application Server, Java EE 5 Edition form sdn.sap.com.

Now I would like to limit the access to an web service. The web service is written in Java (EJB 3.0), so I added the annotation

@RolesAllowed({"TestUser"})

to the associated method. Where can I create the user "TestUser" and set his password?

For sure I have already looked to some sdn threads, but all the instructions and tutorials are made in ABAP or by the Visual Administrator, but I don't have this tool. I only have the "SAP Java EE 5 Engine - Config Tool".

Does anyone have any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Johannes,

The users (roles) specified in the @RolesAllowed annotation are logical Java EE roles for the corresponding module (EJB jar in this case). They do not actually exist in the server environment. Instead, they have to be mapped (assigned) to one or more of the existing UME roles. For more information please check the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/806e75a0-0e01-0010-2587-fc518de8ac1a">Administration Guide</a>, from page 49 on.

HTH!

-Vladimir

johannes_gilbert
Employee
Employee
0 Kudos

Thanks Vladimir,

but as I said, the Administration Guide didn't help me because there is only written "go to cluster_config -> system -> cfg -> services -> com.sap.security.core.ume.service -> Propertysheet properties and change into the edit mode". So and which properties should be changed? Do I have to add something? That isn't shown in the guide.

So for example I would like to create a user "MyUser" ... what is to be done? Which property is to be changed?

Vlado
Advisor
Advisor
0 Kudos

Hi Johannes,

Managing users, groups, and roles is done with the SAP NetWeaver Administrator (NWA). This is described again in the Administration Guide, some more pages down the line (starting with 58 to be pedantically precise ).

Note that the NWA is not installed by default with the Java EE 5 server. <a href="/people/heidrun.reichart/blog/2006/11/24/how-to-use-sap-netweaver-administrator-with-sapacutes-java-platform-enterprise-edition-5">Here</a> a nice blog on how to install and use it. Check also the readme.txt in your C:\SAP\JP1\JC00\j2ee\NWAdmin folder.

HTH!

-Vladimir

johannes_gilbert
Employee
Employee
0 Kudos

Thank you Vladimir. You helped me very much.

Johannes

Answers (0)