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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content