1. log on to the Manager (figure 1)
2. Switch to setting in the security option, select the security store, and click Configure (figure 2)
3. Configure the user role required for security to the External Database (figure 3)
Note: Oracle is used as an example here (before configuration, copy the JDBC driver for the Oracle version to the <arcgisserver install> \ Java \ Manager \ config \ SECURITY \ lib directory, create a tablespace and a user to store the user and role information in the token.
If the driver is Oracle, it is a fixed string: Oracle. JDBC. Driver. oracledriver; jdbcurl: JDBC: oracle: thin: @ 172.16.139.49: 1521: databasename. Username and password are the usernames and passwords of the newly created oracle users.
4. Test the connection and complete the wizard (figure 4, 5, and 6)
Note that you need to restart ArcGIS-related services after the external database is configured.
5. Maintain role information (Figure 7)
6. Maintain user information (figure 8)
7. Authorize the service:If the authorization is eeryoneThis is equivalent to no security restrictions (figure 9)
8. Enable tokenSecurity Configuration (figure 10)
9. Access the Service (Figure 11, 12, and 13). if the service is normal, the security configuration is complete.
10. Disable token Security Service
① Because the manager does not provide a method to directly disable Token, you need to manually modify the configuration file.
② Stop services related to arcgisserver
③ Locate <arcgisserver install> \ Server \ System \ Server. dat in the installation directory and open it with notepad. Modify the value of securityenabled in the node to false, save and close it.
④ Restart the services related to arcgisserver.
11. Notes for Java ADF Development (user information needs to be configured in the configuration file). The red part indicates the Security user information to be configured.
<Managed-bean>
<Managed-bean-Name> agsuser1 </managed-bean-Name>
<Managed-bean-class> com. ESRI. ADF. Web. AGS. Data. agsuser </managed-bean-class>
<Managed-bean-scope> none </managed-bean-scope>
<Managed-property>
<Property-Name> domain </property-Name>
<Value> 192.168.1.100 </value>
</Managed-property>
<Managed-property>
<Property-Name> passwordencrypted </property-Name>
<Value> false </value>
</Managed-property>
<Managed-property>
<Property-Name> username </property-Name>
<Value> administrator </value>
</Managed-property>
<Managed-property>
<Property-Name> password </property-Name>
<Value> administrator </value>
</Managed-property>
</Managed-bean>
12. User Password Encryption (ANT) The user password is stored in the configuration file in plain text, which is relatively secure. However, the user password can be encrypted to improve security. (Figure 14)
Run cmd to execute the ant command in the ArcGIS/Java/tools/password_encryption directory. If the command cannot be identified, configure append in the path environment variable; % ant_home % \ bin; generally, the default ant installed on the server is located in the ArcGIS/Java/tools/ant directory.
If you still cannot execute the command, consider the following steps:
Download: ant:
Http://www.apache.org/dist/ant/binarie http://ant.apache.org/bindownload.cgi
① Set the environment variable java_home to the JDK installation directory.
② Set the environment variable ant_home to the downloaded ant root directory.
③ Set append in environment variable path; % ant_home % \ bin;
④ The test passes the ant-version command in cmd.
⑤ Go To The ArcGIS/Java/tools/password_encryption directory under CMD and execute the ant command
13. Cross-CIDR blocks of application services and token service addresses
The Java version of token and the application service must be in the same network segment. Otherwise, the application cannot obtain the token and the map service cannot be used. The ADF program may prompt errors such as resource removal.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14