spring-projects / spring-projects/spring-ldap

deploy in jboss7.1.1.final error

Open
#445 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
375
Forks
501
Avg merge
6h 4m
Merged PRs (30d)
63

Description

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>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied LdapContextSource configuration and the PartialResultException, then compare the same LDAP operation under Tomcat and JBoss 7.1.1.Final. Reproduce the failure with the shown base, referral, and authentication settings; done means identifying the environment-specific cause and documenting a verified configuration or compatibility fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.