Missing objectClass in VMM configuration causes "LDAP: error code 2 - Bad search filter".

Technote (FAQ)


Question

The WebSphere Application Server Deployment Manager (WSAS DMGR) and WebSphere Portal cannot be stopped. Users cannot log in to the IBM Websphere Integrated Solutions Console (ISC) or IBM Websphere Portal user interface. SystemOut.log records the following exception:

com.ibm.ws.wim.adapter.ldap.LdapConnection search(String, String, Object[], SearchControls)
                                 com.ibm.websphere.wim.exception.WIMSystemException: CWWIM4520E  The 'javax.naming.CommunicationException: [LDAP: error code 2 - Bad search filter]; Remaining name: 'o=test,dc=mycompany,dc=com'; Resolved object: 'com.sun.jndi.ldap.LdapCtx@3c923c92'' naming exception occurred during processing.
at com.ibm.ws.wim.adapter.ldap.LdapConnection.search(LdapConnection.java:2737)
at com.ibm.ws.wim.adapter.ldap.LdapConnection.checkSearchCache(LdapConnection.java:2677)
at com.ibm.ws.wim.adapter.ldap.LdapConnection.search(LdapConnection.java:2854)
at com.ibm.ws.wim.adapter.ldap.LdapConnection.searchEntities(LdapConnection.java:3059)

Why does this happen and how can I recover from this issue?



Cause

The stanza for PersonAccount entity type in wimconfig.xml is missing the objectClass:

<config:ldapEntityTypes name="PersonAccount" searchFilter=""/>


Answer

Back up profile/config/cells/cellname/wim/config/wimconfig.xml. Then add the appropriate objectClass for the PersonAccount entity type, save the wimconfig.xml, and restart the server.

For example, in an environment using IBM® Tivoli® Directory Server (ITDS) as the LDAP, change it to:

<config:ldapEntityTypes name="PersonAccount" searchFilter="">
        <config:objectClasses>inetOrgPerson</config:objectClasses>
</config:ldapEntityTypes>

(In a clustered environment, the change should be made to copy of this file in the <dmgr_profile> on the dmgr node and propagated to the Portal nodes.)



Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Portal
VMM - Virtual Member Manager

Software version:

6.1, 7.0, 8.0

Operating system(s):

AIX, HP-UX, IBM i, Linux, Solaris, Windows, i5/OS, z/OS

Reference #:

1469971

Modified date:

2013-01-31

Translate my page

Machine Translation

Content navigation