[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: problem while storing objects



 
Hi,
     I saw similar  question regarding storing objects in openLDAP site but they are no replies .I am facing the same problem please let me know to  solve this problem
 
String dn = "cn=rajudesai,ou=lamcou,dc=mbt,dc=com";
        Map mvalues = Collections.synchronizedMap(new HashMap(10,
(float)0.8));

        mvalues.put("uid","raju"                );
        mvalues.put("password", "desai");
        initctx.bind(dn,mvalues);


        the exception is like this...
       
         javax.naming.directory.SchemaViolationException:
netscape.ldap.LDAPException: error result (65); missing required
attribute; Object class violation       at
com.netscape.jndi.ldap.common.ExceptionMapper.getNamingException(ExceptionMapper.java:178)
at com.netscape.jndi.ldap.LdapService.addEntry(LdapService.java:464)  
at
com.netscape.jndi.ldap.LdapContextImpl.bind(LdapContextImpl.java:370)
at javax.naming.InitialContext.bind(InitialContext.java:358) 

Thanks in advance,
Regards,
Naveen