ArcGIS identity

版本:ArcGIS 10.0

当应用程序用到本地资源时(ArcGIS server local data sources)需要创建ArcGIS identity ,其他资源不需要创建,例如:ArcIMS和ArcGIS Server 网络资源(ArcGIS Server Internet data sources)。

ArcGIS identity 账户的要求

1、账户必须是Web应用程序所在主机上的合法账户

2、账户必须在ArcGIS Server SOM所在主机的agsuser和agsusers用户组内

3、如果Web应用程序和ArcGIS Server SOM不在一个主机上。当所有主机同在一个域,则需要一个域账户;或则两台主机上有同名同密码的账户。

4、 ArcGIS identity只支持一个账户

自动添加ArcGIS identity

创建ArcGIS identity最简单的方法是在VS的解决方案资源管理器中,右击应用程序,单击“Add ArcGIS Identity”,填写相关信息。创建ArcGIS identity后,在web.config中的<system.web>节点下出现:

<identity configProtectionProvider="DataProtectionConfigurationProvider">
<EncryptedData>
<CipherData>
<CipherValue>
</CipherValue>
</CipherData>
<EncryptedData>
</identity>

手动设置和编译认证信息

1.首先在web.config的system.web节点下添加<identity>元素及用户信息

<identity impersonate=”true” userName=”mydomain\myusername” password=”mypassword” />

2.运行应用程序,测试认证是否生效

3.打开VS2010命令行工具,用Aspnet_regiis.exe工具加密配置节

aspnet_regiis -pe "system.web/identity" -app "/MyWebMappingApp" -prov "DataProtectionConfigurationProvider"

参考:http://msdn.microsoft.com/zh-cn/library/k6h9cz8h(VS.80).aspx

posted @ 2011-09-19 22:15  xmwang  阅读(2369)  评论(0编辑  收藏  举报