OpenAM .Net Agent
1.0.131
通过查找 $ {site} /web.config 文件来识别应用程序文件所在的 ${site}文件夹
策略代理设置位于${site}/web.config文件中。将以下设置添加到<appSettings>部分:
< add key = " com.sun.identity.agents.config.naming.url " value = " " />
< add key = " com.sun.identity.agents.config.organization.name " value = " / " />
< add key = " com.sun.identity.agents.app.username " value = " " />
< add key = " com.iplanet.am.service.password " value = " " />
< add key = " com.sun.identity.agents.config.key " value = " " /> <!-- skip this setting, if password is not encrypted) -->
< add key = " com.sun.identity.agents.config.local.log.path " value = " ${basedir}/App_Data/Logs " /> <!-- override log files path -->
设置值由 OpenAM 服务器管理员提供,或者可以在先前安装的c:iis7_agentIdentifier_${site_id}configOpenSSOAgentBootstrap.properties文件中找到。
可以在${site}/web.config文件中的<httpModules>部分启用策略代理:
< add name = " iis7agent " />
< add name = " OpenAM " type = " ru.org.openam.iis.OpenAMHttpModule " />
重要提示:新部分必须是<httpModules>标记之后或<httpModules>内的<clear/>标记之后的第一个条目(如果存在)
可以在${site}/web.config文件的<httpModules>部分禁用策略代理:
删除条目:
< add name = " OpenAM " type = " ru.org.openam.iis.OpenAMHttpModule " />
设置示例${site}/web.config :https://github.com/OpenIdentityPlatform/OpenAM-.Net-Agent/blob/master/ru.org.openam.iis.site.sample/web.config
服务器使用不受信任的证书。将服务器证书添加到受信任列表或禁用严格的证书检查(不建议在生产中使用):
< add key = " com.sun.identity.agents.config.trust.server.certs " value = " true " />
网络设备无法正确处理维护keepalive网络连接,尝试禁止keepalive连接:
< add key = " org.openidentityplatform.agents.config.keepalive.disable " value = " true " />