minakari
Aug 23rd, 2007, 05:20 AM
hello
when I tryig to insert too ldap this error occurs:
Error occured javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=Rahul, ou=People, dc=irisa, dc=com'
what can I do?
I dont now how to solve this problem.
my code is:
public void insertContact(ContactDTO contactDTO) {
Attributes personAttributes = new BasicAttributes();
BasicAttribute personBasicAttribute = new BasicAttribute("objectclass");
personBasicAttribute.add("person");
personAttributes.put(personBasicAttribute);
personAttributes.put("cn", contactDTO.getCommonName());
personAttributes.put("sn", contactDTO.getLastName());
personAttributes.put("description", contactDTO.getDescription());
DistinguishedName newContactDN = new DistinguishedName("dc=irisa,dc=com");
newContactDN.add("ou","People");
newContactDN.add("cn",contactDTO.getCommonName());
ldapTemplate.bind(newContactDN, null, personAttributes);
}
I am new in spring-ldap.
when I tryig to insert too ldap this error occurs:
Error occured javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=Rahul, ou=People, dc=irisa, dc=com'
what can I do?
I dont now how to solve this problem.
my code is:
public void insertContact(ContactDTO contactDTO) {
Attributes personAttributes = new BasicAttributes();
BasicAttribute personBasicAttribute = new BasicAttribute("objectclass");
personBasicAttribute.add("person");
personAttributes.put(personBasicAttribute);
personAttributes.put("cn", contactDTO.getCommonName());
personAttributes.put("sn", contactDTO.getLastName());
personAttributes.put("description", contactDTO.getDescription());
DistinguishedName newContactDN = new DistinguishedName("dc=irisa,dc=com");
newContactDN.add("ou","People");
newContactDN.add("cn",contactDTO.getCommonName());
ldapTemplate.bind(newContactDN, null, personAttributes);
}
I am new in spring-ldap.