Openldap: When adding sudo rules is giving error "ldap_add: Invalid syntax (21) additional info: objectClass: value #1 invalid per syntax"

Solution Verified - Updated -

Issue

  • Adding sudo rule in ldap is giving following error.
# ldapadd  -x -h '127.0.0.1' -D 'cn=Manager,dc=example,dc=com' -W -f /tmp/sudo-rule.ldif
adding new entry "cn=adminsudo,ou=SUDOers,dc=example,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #1 invalid per syntax

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Openldap

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.