IBM Portal / WCM Forum

Free community discussion board for IBM® WebSphere® Portal
and Lotus Web Content Management™
(WCM / ILWWCM / LWWCM / WWCM) products.

You are not logged in.

Announcement

#1 2010-07-30 10:07 pm

anusha12
Newbie
Registered: 2010-07-30
Posts: 2

SchemaViolationException while adding the country "c" field to LDAP.

Hi,

I need to add the country code selected by the user to the LDAP database using IBM portlets.

Using PUMA API is need to add the attributes to the user.  In order to add the country attribute to the LDAP user i have used the following code

userAttrs.put("c", countryVal);
userAttrs is a map which contains attributes as keys and field values as values in the Hash Map.

At this line i am getting the following exception in Logs:

0000007c exception     E com.ibm.ws.wim.adapter.ldap.LdapConnection createSubcontext CWWIM4520E The 'javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Object Class Violation]; remaining name 'cn=addcountry,cn=users,dc=cmportal,dc=com'; resolved object com.sun.jndi.ldap.LdapCtx@4abc4abc' naming exception occurred during processing.

0000007c exception     E com.ibm.ws.wim.adapter.ldap.LdapConnection createSubcontext
                                 com.ibm.websphere.wim.exception.WIMSystemException: CWWIM4520E The 'javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Object Class Violation]; remaining name 'cn=addcountry,cn=users,dc=cmportal,dc=com'; resolved object com.sun.jndi.ldap.LdapCtx@4abc4abc' naming exception occurred during processing.

Regards,
Anusha.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

* IBM and Workplace Web Content Management are trademarks of International Business Machines Corporation in the United States, other countries, or both.

This website is not run by IBM® - it is a privately owned and run website for the benefit of the Portal and WCM community.