When attempting to search for users within the IAM (Keycloak) console with LDAP integration enabled, the following issues occur:
All supported DevTest Environments
The issue is caused by an incorrect configuration of the LDAP Search Base DN. The system was configured using a specific user template (e.g., cn={0}) instead of a valid container.
# WRONG CONFIGURATION
ldap.base.dn=cn={0}
LDAP search bases must point to a top-level domain component or an Organizational Unit (OU) container. Using a template string like cn={0} in the search base field causes the directory query to fail with a NamingException.
Update the LDAP configuration to use a proper search base DN where the user objects reside.
Example Correction:
ldap.base.dn=cn={0}ldap.base.dn=ou=Users,dc=yourdomain,dc=com