spring-ldap
spring-ldap copied to clipboard
deploy in jboss7.1.1.final error
trafficstars
Hi
I used the Ldap lib, in tomcat it's run ok.but in jboss7.1.1.final,get the below error: 11:35:28,079 INFO [stdout] (http-localhost-127.0.0.1-8071-1) org.springframework.ldap.PartialResultException: nested exception is javax.naming.PartialResultException [ Root exception is javax.naming.NotContextException: Cannot create context for: ldap://DomainDnsZones.cbichina.com/DC=DomainDnsZones,DC=cbichina,DC=com; remaining name 'dc=cbichina,dc=com']
my config is
<bean id="ldapContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
<property name="referral" value="follow"></property>
<property name="url" value="ldap://192.168.70.8:389" />
<!-- -->
<!--<property name="base" value="ou=user,dc=cq,dc=cst,dc=com" />-->
<property name="base" value="dc=cbichina,dc=com"></property>
<property name="userDn" value="CN=***,ou=,ou=,dc=cbichina,dc=com" />
<property name="password" value="" />
<property name="baseEnvironmentProperties">
<map>
<entry key="java.naming.security.authentication" value="simple" />
</map>
</property>
</bean>
<bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
<property name="contextSource" ref="ldapContextSource" />
</bean>