简体   繁体   English

使用OpenDJ的OpenAM-NameNotFoundException:ldap / idp / userDN-启动JBoss时

[英]OpenAM with OpenDJ - NameNotFoundException: ldap/idp/userDN - when starting up JBoss

I'm using OpenAM, with its embedded OpenDJ as the LDAP service, to protect my web application running on JBoss 7. 我正在使用OpenAM及其嵌入式OpenDJ作为LDAP服务来保护在JBoss 7上运行的Web应用程序。

When I start my JBoss I get this error: 当我启动JBoss时,出现以下错误:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapUserDN'
...
Caused by: javax.naming.NameNotFoundException: ldap/idp/userDN -- service jboss.naming.context.java.ldap.idp.userDN

So apparently Spring is looking for the JNDI node ldap/idp/userDN . 因此,显然,Spring正在寻找JNDI节点ldap / idp / userDN But the jboss configuration file that I got with the project has these entries: 但是我在项目中获得的jboss配置文件具有以下条目:

            <simple name="ldap/opendj/url" value="ldap://localhost:50389"/>
            <simple name="ldap/opendj/userDN" value="cn=Directory Manager"/>
            <simple name="ldap/opendj/password" value="mypassword"/>
            <simple name="ldap/opendj/baseDN" value="dc=opensso,dc=java,dc=net"/>

And these properties are added to my JNDI tree on JBoss. 并将这些属性添加到我在JBoss上的JNDI树中。

If I change these to "ldap/idp/userDN", for instance, then I get rid of the error, but I was wondering if there's anywhere, where "ldap/opendj/userDN" should be mapped to "ldap/idp/userDN", that I've missed. 例如,如果我将其更改为“ ldap / idp / userDN”,那么我会摆脱该错误,但是我想知道是否存在将“ ldap / opendj / userDN”映射到“ ldap / idp / userDN”的地方”,这是我想念的。

If you're using Spring LDAP, the actual configuration of the ldap-context-source goes in the a spring config file, and might look like this: 如果您使用的是Spring LDAP,则ldap-context-source的实际配置位于spring config文件中,可能看起来像这样:

<jee:jndi-lookup jndi-name="ldap/idp/url" id="ldapUrl"/>
<jee:jndi-lookup jndi-name="ldap/idp/userDN" id="ldapUserDN"/>
<jee:jndi-lookup jndi-name="ldap/idp/password" id="ldapPassword"/>
<jee:jndi-lookup jndi-name="ldap/idp/baseDN" id="ldapBaseDN"/>
<ldap:context-source url="#{ldapUrl}"  
    username="#{ldapUserDN}"
    password="#{ldapPassword}"      
    base="#{ldapBaseDN}"
    native-pooling="true"/>

So the jndi entries in your jboss config file should match the ones above. 因此,jboss配置文件中的jndi条目应与上面的条目匹配。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Spring JMS通过HornetQ ConnectionFactory通过JNDI使用EAR启动JBoss时出现NameNotFoundException - NameNotFoundException when starting JBoss with an EAR using HornetQ ConnectionFactory via JNDI using Spring JMS 使用JBoss / Spring和NetBeans部署WebAppp时javax.naming.NameNotFoundException - javax.naming.NameNotFoundException when deploying WebAppp with JBoss/Spring and NetBeans Spring Boot LDAP Auth NameNotFoundException - Spring Boot LDAP Auth NameNotFoundException 使用Spring Security的LDAP认证对任何用户抛出LDAP错误49、52e - LDAP Authentication with Spring Security throwing LDAP error 49, 52e for any userDn 无法填充池:启动jboss应用程序时 - Unable to fill pool: when starting jboss application javax.naming.NameNotFoundException: java:jboss/jms/exampleApp/SampleQueueIn - javax.naming.NameNotFoundException: java:jboss/jms/exampleApp/SampleQueueIn 获取javax.naming.NameNotFoundException:启动tomcat时 - Getting javax.naming.NameNotFoundException: While starting tomcat 获取org.springframework.ldap.NameNotFoundException:[LDAP:错误代码32-在目录中找不到父项。 - Getting org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - Parent entry not found in the directory.]; 在Unix环境下将应用程序部署在JBoss中时,如何实现Spring LDAP认证? - How to implement Spring LDAP authentication when application deployed in JBoss on unix environment? 使用 LDAP 配置启动 Para 时,创建名为 springSecurityFilterChain 的 bean 时出错,找不到密钥安全的配置设置 - Error creating bean with name springSecurityFilterChain No configuration setting found for key security when starting Para with LDAP config
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM