Ldap_modify: Undefined attribute type (17)

ldapopenldap

I want to add the attribute key to all users in ldap.

add: keyPair
keyPair: 0000000000

But it gives me:

ldap_modify: Undefined attribute type (17)
        additional info: keyPair: attribute type undefined

How can I add the attribute keyPair?

Best Answer

You can try using an LDIF file to modify the "keyPair" attribute, would have to build something similar to eg. modifyexample.ldif:

dn: uid=uidexample,ou=examples,dc=example,dc=com changetype: add objectClass: person keyPair: 0000000000

and then run following command to execute the modification:

ldapmodify -f modifyexample.ldif