OpenShift LDAP group sync - filter does not start with an '('

Solution Verified - Updated -

Issue

  • When trying to create and sync groups and users using LDAP sync method, get this error message about parenthesis
# oadm groups sync --whitelist=whitelist.txt --sync-config=ldap.yaml --confirm
error: validation of LDAP sync config failed: groupsQuery.filter: Invalid value: "objectclass=groupofuniquenames": invalid query filter: LDAP Result Code 201 "": ldap: filter does not start with an '('
See 'oadm groups sync -h' for help and examples.
  • Snippet of LDAP sync config file does not contain parentheses
groupsQuery:
        baseDN: "ou=tst1,dc=example,dc=company,dc=com"
        scope: sub
        derefAliases: never
        filter: objectclass=groupofuniquenames
        pageSize: 0

Environment

  • Red Hat OpenShift Container Platform
    • 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.