User guide
Resource Management Setting the Custom Security Policy (Required)
AlliedView NMS Administration Guide (Installing and Starting Up)
2-6
2.8 Resource Management
2.8.1 Setting the Custom Security Policy (Required)
This must be set for the server.
• Find the java runtime environment (jre). It’s usually located in:
<drive>:/Program Files/Java/jre*
or use the Control Panel Java Plug-in tool “Advanced” tab to see the exact path of the java runtime.
• Open the java.policy file in lib/security (under the jre path).
• Append a tag for the NMS server in the system, as follows, where <server_name> is a host name or IP address:
grant {
permission java.net.SocketPermission “<server_name>”, "accept,connect,resolve”;
permission java.awt.AWTPermission "setAppletStub";
};
• Save the file.
Wildcard (*) can be used in the server_name but the wildcard must be the first character, such as *.sun.com.
You can combine the NMS-specific permissions for the server into a single grant, as follows:
grant {
permission java.net.SocketPermission "nmstest2", "accept,connect,resolve";
permission java.awt.AWTPermission "setAppletStub";
};
nmstest2
is an example server.
Note: Permissions are also required when using the WebGen features. Refer to 4.7.2 and 5.3.9.5.