Announcement Announcement Module
Collapse
No announcement yet.
Problem in binding user in LDAP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in binding user in LDAP

    I have specified the context source in application context file....
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapC ontextSource">
    <property name="url" value="ldap://brm-devoid-01.test.com:389/"/>
    <property name="base" value="ou=Users,dc=external,dc=test,dc=com"/>
    <property name="userDn" value="cn=myName"/>
    <property name="password" value="mypassword"/>
    </bean>

    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate" >
    <constructor-arg ref="contextSource"/>
    </bean>
    <bean id="activation" class="com.test.ActivationImpl">
    <property name="ldapTemplate" ref="ldapTemplate"/>
    </bean>

    With these specification in place, I am able to read a user from LDAP successfully also I am able to list all the user. But when I am trying to add a user using bind() then I am getting following exception:

    javax.naming.NameNotFoundException: [LDAP: error code 32 - Parent entry not found in the directory.]; remaining name 'brusertype=End User,brsupportuser=N,brprofileupdateflag=N,brreset flag=N,brsegment=GUEST,brrelationshiptype=GENERAL, cn=Dinesh Narayanan,sn=Narayanan,givenname=Dinesh,userpasswo rd=password1,uid=[email protected]

    Please help me coz I m struggling it with for past 3 days....
    Last edited by deepti.agrawal; Jan 6th, 2011, 02:10 AM.

  • #2
    Originally posted by deepti.agrawal View Post
    I have specified the context source in application context file....
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapC ontextSource">
    <property name="url" value="ldap://brm-devoid-01.test.com:389/"/>
    <property name="base" value="ou=Users,dc=external,dc=test,dc=com"/>
    <property name="userDn" value="cn=myName"/>
    <property name="password" value="mypassword"/>
    </bean>

    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate" >
    <constructor-arg ref="contextSource"/>
    </bean>
    <bean id="activation" class="com.test.ActivationImpl">
    <property name="ldapTemplate" ref="ldapTemplate"/>
    </bean>

    With these specification in place, I am able to read a user from LDAP successfully also I am able to list all the user. But when I am trying to add a user using bind() then I am getting following exception:

    javax.naming.NameNotFoundException: [LDAP: error code 32 - Parent entry not found in the directory.]; remaining name 'brusertype=End User,brsupportuser=N,brprofileupdateflag=N,brreset flag=N,brsegment=GUEST,brrelationshiptype=GENERAL, cn=Dinesh Narayanan,sn=Narayanan,givenname=Dinesh,userpasswo rd=password1,uid=[email protected],ou =users,dc=external,dc=test,dc=com'

    Please help me coz I m struggling it with for past 3 days....
    Is there a reason why you're ou=users and ou=Users different?

    Comment


    • #3
      I have used ou=Users because it is the way it is defined in LDAP. But the case of the ou=Users is not the issue because I have used both ou=Users and ou=users but still it is not working for me.........
      Please help.........
      Last edited by deepti.agrawal; Jan 3rd, 2011, 02:11 AM.

      Comment

      Working...
      X