OpenAM J2EE代理安装降低了tomcat

R-JANA

OpenAM -12版,Agent 3.5和3.3版,tomcat 7版

我试图遵循链接https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/authentication-ldap-sso/sso-openam-06052012来设置我的J2EE代理。问问题后让我粘贴步骤(请参阅最后)

但我收到以下错误

无法在为用户添加我的自定义数据存储时配置J2ee代理

我尝试使用3.5版已安装和卸载的版本,并尝试使用以前的版本。

http://database.developer-works.com/article/16009911/%22Cannot+obtain+Application+SSO+token%22+error上对此主题进行了很好的讨论,但对我没有太大帮助。

我正在使用LDAP,所以我已使用LDAP领域,主题显示正常。我还观察到,“策略”选项卡与“博客”中的描述相比已发生了很大变化。

现在,有了障碍,我不确定如何继续,因为错误并没有给我任何提示。我甚至在类路径中使用代理的用户名和密码添加了名为AMConfig.properties的文件,并按照上述讨论中的建议尝试了OpenAM管理员的用户名和密码。但这也无济于事。

问题是Tomcat现在尚未启动,并给出错误消息,要求AMConfig.properties属性

我知道OpenAM Realm设置很好,因为我能够通过该领域登录到另一个应用程序(Liferay),我只需要提供URL即可使用OpenAM集成。但是在卸载代理后,tomcat会启动而没有任何错误,并且我能够登录到该应用程序

-------------------Step copied from 1st link(modified)--------------------------

1. Configure your OpenAM agent (tried both 3.5 and 3.3 version on tomcat 7)
a. Log into OpenAM as the admin user and navigate to "Access Control -> (Your Realm) - where in my case LDAP Realm (other application using it without issue)
b. Select Policies -> New Policy
c. Enter Share as the policy name and then create 2 new URL Policy agent rules
d. 1st Resource Name = http://:/share/*
e. 2nd Resource Name = http://alfresco.domain.com:8080/share/*?*
f. Add a subjects - already part of LDAP Realm 
g. Now select Agents -> J2EE - > (your J2EE agent)
h. Select the Application tab
i. Login Processing -> Login Form URI - add /share/page/dologin
j. Logout Processing -> Application Logout URL - add Map Key = share - Corresponding Map Value = /share/page/dologout
k. Not Enforced URI Processing - Add 2 entries - /share and /share/
l. Profile Attributes Processing - Select HTTP_HEADER and add Map Key = uid - Corresponding Map Value = SsoUserHeader (This is what I called my header in the alfresco-global.properties file - see below)

  Auth chain
authentication.chain=external1:external,alfrescoNtlm1:alfrescoNtlm 
alfresco.authentication.allowGuestLogin=true

  SSO settings
external.authentication.enabled=true
external.authentication.defaultAdministratorUserNames=admin
external.authentication.proxyUserName=
external.authentication.proxyHeader=SsoUserHeader

NOTE- It does not seem possible to configure SSO where the Guest login has been disabled. There are webscripts used on the Alfresco repository that need guest login.

That concludes the setup for Alfresco and OpenAM

For Share you need to have the following section uncommented in your share-config-custom.xml


alfresco/web-extension/alfresco-system.p12
pkcs12
alfresco-system



alfrescoCookie
Alfresco Connector
Connects to an Alfresco instance using cookie-based authentication
org.alfresco.web.site.servlet.SlingshotAlfrescoConnector



alfrescoHeader
Alfresco Connector
Connects to an Alfresco instance using header and cookie-based authentication
org.alfresco.web.site.servlet.SlingshotAlfrescoConnector
SsoUserHeader

alfresco
Alfresco - user access
Access to Alfresco Repository WebScripts that require user authentication
alfrescoHeader
http://alfreso.domain.com:8080/alfresco/wcs
user
true


Notice I am not using the SSL cert and in my alfrescoHeader connector I have used SsoUserHeader (as setup in OpenAM) and the endpoint uses the alfrescoHeader connector

Now you need to add the OpenAM filter to the Share web.xml file

Add the following filter just before the Share SSO authentication support filter


Agent
com.sun.identity.agents.filter.AmAgentFilter
Add the following filter mapping to the filter-mapping section


Agent

REQUEST
INCLUDE
FORWARD
ERROR
----- End ----------
彼得·梅杰

该错误消息有点令人误解:无法获得应用程序SSO令牌通常意味着该代理无法对其自身进行身份验证。安装代理时,代理会要求提供配置文件名称和密码文件,这些值必须与OpenAM中配置的代理配置文件相对应。要测试您是否可以以用户身份进行身份验证,您可以通过发出以下请求来尝试尝试以代理身份进行身份验证:

curl -d "username=profilename&password=password&uri=realm=/%26module=Application" http://aldaris.sch.bme.hu:8080/openam/identity/authenticate

在以上命令中,领域值必须与在OpenSSOAgentBootstrap.properties中(在代理的安装目录下)定义的“ com.sun.identity.agents.config.organization.name”属性的值相同。

用户名/密码组合错误只是此异常的可能根本原因之一。在启动过程中,代理也可能无法连接到OpenAM进行身份验证。在这些情况下,问题可能是:

  • 网络错误,防火墙问题阻止代理联系OpenAM
  • SSL信任问题:代理的JVM不信任OpenAM容器的证书(仅当您通过提供OpenAM的HTTPS URL安装了代理并且证书是自签名的或仅受JVM信任时才出现此问题)

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

OpenAM J2EE代理安装降低了tomcat

来自分类Dev

J2EE代理的OpenAM定制领域

来自分类Dev

配置OpenAM代理

来自分类Dev

OpenAM Java EE代理纯文本密码

来自分类Dev

OpenAM JEE 策略代理 3.5 和 5.x

来自分类Dev

如何在Tomcat中以编程方式向OpenAM认证用户?

来自分类Dev

Maven的新用户请求帮助解密openam tomcat 6代理的依赖关系

来自分类Dev

使用openAM cert auth设置apache代理-如果存在GET参数,则设置标头

来自分类Dev

有什么方法可以自定义OpenAM代理用于放置标头的编码?

来自分类Dev

我们如何更改Openam加密算法来声明SAML2?

来自分类Dev

OpenAM身份验证-注销

来自分类Dev

Apiman(RedHat)和OpenAM(forgerock)

来自分类Dev

OpenAM和ADFS之间的区别

来自分类Dev

OpenAM OpenID 连接令牌验证

来自分类Dev

是OpenDJ,OpenAM和OpenIAM免费软件

来自分类Dev

openam-使用ssoadm创建用户

来自分类Dev

OpenAM Policy Agent无法匹配URL

来自分类Dev

单一登录OpenAM Java代码

来自分类Dev

OpenAM Policy Agent无法匹配URL

来自分类Dev

openam-使用ssoadm创建用户

来自分类Dev

自定义Openam登录页面

来自分类Dev

带有Tivoly Directory Server的OpenAm

来自分类Dev

OPENAM是否支持SHA-256加密

来自分类Dev

为什么Openam经常使用kerberos?

来自分类Dev

负载均衡器背后的Openam

来自分类Dev

如何让我的 openAM SDK 应用程序知道在哪里可以找到 OpenAM 服务器?

来自分类Dev

Apache的Lucene的对J2EE 1.4

来自分类Dev

如何在集群环境中安装J2EE Web应用程序?

来自分类Dev

如何将J2EE插件安装到Eclipse Luna SE中