Summary
Error
After installing ALM 12.21 patch 1, an error message would appear when performing a user search on LDAP. The error would state the following:
“Messages:
Failed to Search Ldap Entries By Keyword;
Stack Trace:
LDAPSearchException(resultCode=2 (protocol error), numEntries=0, numReferences=0, errorMessage='Bad search filter')
at com.unboundid.ldap.sdk.LDAPConnection.search(LDAPConnection.java:3303)
at com.hp.alm.platform.ldapv2.UnboundidLdapTemplate.searchWithListener(UnboundidLdapTemplate.java:150)
wrapped in com.hp.alm.platform.exception.CTdException:
at com.hp.alm.platform.ldapv2.UnboundidLdapTemplate.searchWithListener(UnboundidLdapTemplate.java:163)………………….”
Cause
Fix
To solve this problem please perform the following steps:
1. Browse to the Site Administrator.
2. Open the Site Configuration tab.
3. Locate the following parameter: LDAP_USER_SEARCH_FIELDS
4. Change the parameter value to USERNAME=Y.
After the site configuration parameter value is changed, the site administrator will be able to import users from LDAP using the Search users by Keyword option without any error message.