I have specified the context source in application context file....
<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
<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 from LDAP. But when I am trying to add a user using ldapTemplate.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=testingspringldap2@intrado.com,ou =users,dc=external,dc=test,dc=com'
Please help me coz I m struggling it with for past 4 days....
Bookmarks