Related Topics |
---|
You can restrict services by storing permissions in an XML file. Before setting up this file, see Restricting access to ArcIMS services for an overview of authentication.
You need to make edits to the following files:If you have a Web application that uses the Java Connector, you must edit authenticate.properties.
One property in either file is specific to the file-based access control list (ACL):
aclFileName=
Specifies the path and filename to the ACL file.
<?xml version="1.0"?> <AIMSACL> <!-- The following sample has two unrestricted services (SanFrancisco, World) and restricted service (SecretData). The unrestricted services use an asterix for the name, and a user is not required to type in a password. --> <USER name="*" services="SanFrancisco, World" /> <USER name="private" password="pass.word" services="SecretData" /> <!-- The following sample shows how to further restrict service access to particular machines. --> <USER name="private" password="pass.word" services="SecretData" trustedclients="198.102.62.1,198.102.62.22"/> <!-- The following sample adds a user who can access all services, the account never expires and the account is active. --> <!-- The following sample adds a user who can access service "free", the account never expires, the account is active but the arcxml tag "GET_FEATURES" is forbidden to this user. --> <USER name="new" password="new" services="free" expiration="*" active="1" forbiddentags="GET_FEATURES"/> </AIMSACL> |
Things to keep in mind when setting up an ACL file:
Create your configuration file (AXL) and then design the look of the Web site with Designer. Note: Designer is not able to access restricted services; thus, you should design your Web site before restricting access to a service.
If you are using the Servlet Connector, locate Esrimap_prop installed in your Web server's servlet directory and edit it with a text editor. See Common servlet engine file locations for a list of common Web servers and their servlet directory location.
Note: ArcIMS installs a backup copy of all the files that comprise the Servlet Connector in \Connectors\Servlet on Windows or /Middleware/Servlet_Connector on UNIX and Linux. You should not edit the Esrimap_prop file at this location because it will have no impact on the operation of the Servlet Connector.
Set the properties as shown below. You can set many of these properties by removing the comment character (#) before them. The properties are case sensitive but the values assigned to the properties are not case sensitive.
enable=True authenticate=True authMethods=Digest authenticateWithSessions=True sessionTimeout=120 aclFileName= realm=ArcIMS Network |
If you have a Web application using the Java Connector, locate authenticate.properties in the Web application's WEB-INF/classes directory.
Set the properties as shown below.
authenticate=True aclFileName= |
The value for aclFileName that all slashes must be forward slashes in the path name.
A sample ACL file named sample_aimsacl.xml is included in the documentation directory.
Windows: <ArcIMS install location>\ArcIMS\Documentation
UNIX and Linux: $AIMSHOME/documentation.
The following sample ACL file has one restricted and two non-restricted services.
<?xml version="1.0"?> <AIMSACL> <USER name="*" services="SanFrancisco, World" /> <USER name="private" password="pass.word" services="SecretData" /> </AIMSACL> |
Note: Windows XP users may find Digest authentication turned on, but grayed out and unable to be deactivated. In this case, contact ESRI technical support.