[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
problem storing java objects in openldap , pls help
hi ,
i am trying to bind a java
Map Object with a dn and in the sladp.conf file i have included the
java.schema also . i am sending you the code snippet and the exception
also ,
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)
thanx in advance
with best regards
swarajit
--
swarajit roy
software engineer
Mahindra British telecom
Pune
Maharastra
Tel no: (020)5424301 extn 1328