Hello...
Another ldap upset in my back yard....
When i try to bind a new entry in my ldap, i set the values for
"objectclass" attribute like this:
where listOfObjectClasses is:Code:Vector objectClasses = new Vector(m_listOfObjectClasses.size()); objectClasses.addAll(m_listOfObjectClasses); attributes.put("objectclass", objectClasses);
My existing entries all have the same "objectclass" attribute values:Code:<property name="listOfObjectClasses"> <list> <value>top</value> <value>account</value> <value>eAccount</value> <value>eWebAccount</value> </list> </property>
top,account,eAccount,eWebAccount
Then the actual binding happens:
orCode:m_ldapTemplate.bind("uid=" + p_ldapUser.getUsername() + "," + getSearchBase(), null, attributes);
The same error hapens:Code:m_ldapTemplate.bind("uid=" + p_ldapUser.getUsername(), null, attributes);
Ideas (Although this may not have any connection with the ldapTemplate)?Code:2006-09-12 14:24:12,757 [DEBUG] [org.acegisecurity.ui.session.HttpSessionEventPublisher.sessionDestroyed] - [Publishing event: org.acegisecurity.ui.session.HttpSessionDestroyedEvent[source=org.apache.catalina.session.StandardSessionFacade@8ebb5a]] 2006-09-12 14:24:12,773 [DEBUG] [org.springframework.context.support.AbstractApplicationContext.publishEvent] - [Publishing event in context [Root WebApplicationContext]: org.acegisecurity.ui.session.HttpSessionDestroyedEvent[source=org.apache.catalina.session.StandardSessionFacade@8ebb5a]] 2006-09-12 14:24:12,804 [DEBUG] [org.springframework.web.servlet.DispatcherServlet.processHandlerException] - [Handler execution resulted in exception - forwarding to resolved error view: ModelAndView: reference to view with name 'genericControllerError'; model is {exception=org.springframework.ldap.UncategorizedLdapException: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: Malformed 'objectClass' attribute value; remaining name 'uid=dertda,ou=admins,ou=olpadmin,O=AMEX.HR,C=HR'}] org.springframework.ldap.UncategorizedLdapException: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: Malformed 'objectClass' attribute value; remaining name 'uid=dertda,ou=admins,ou=olpadmin,O=AMEX.HR,C=HR' javax.naming.directory.InvalidAttributeValueException: Malformed 'objectClass' attribute value; remaining name 'uid=dertda,ou=admins,ou=olpadmin,O=AMEX.HR,C=HR' at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapClient.java:1041) at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:1089) at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:382) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186) at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:156) at org.springframework.ldap.LdapTemplate$16.executeWithContext(LdapTemplate.java:789) at org.springframework.ldap.LdapTemplate.executeWithContext(LdapTemplate.java:641) at org.springframework.ldap.LdapTemplate.executeReadWrite(LdapTemplate.java:636) at org.springframework.ldap.LdapTemplate.bind(LdapTemplate.java:786) at hr.pbzcard.olpadmin.business.dao.ldap.LdapDaoImpl.add(LdapDaoImpl.java:307)
Thank you in advance!


Reply With Quote
