HI guys.
I'm having an issue with my private PEN when I want to add an objectclass and an
attribute with the following ldif (99999 is a replacement for my private PEN registered at
Iana)
The following output is what I get:
modifying entry "cn=schema"
ldap_modify: Invalid syntax (21)
additional info: attribute type myAttributeName: Unknown attribute syntax OID
"1.3.6.1.4.1.99999.1.1.2.2.1"
modifying entry "cn=schema"
ldap_modify: Invalid syntax (21)
additional info: object class ( 1.1.2.1.1 NAME 'customPerson' SUP top
SYNTAX 1.3.6.1.4.1.99999.1.1.2.1.1 AUXILIARY MAY ( myAttributeName ) X-ORIGIN
'Extending FreeIPA' ): Failed to parse objectclass, error(2) at (
1.3.6.1.4.1.99999.1.1.2.1.1 AUXILIARY MAY ( myAttributeName ) X-ORIGIN 'Extending
FreeIPA' ))
And this is the (as far as I know) good ldif:
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 1.1.2.2.1
NAME 'myAttributeName'
EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.99999.1.1.2.2.1
X-ORIGIN 'Extending FreeIPA' )
dn: cn=schema
changetype: modify
add: objectClasses
objectClasses: ( 1.1.2.1.1
NAME 'customPerson' SUP top
SYNTAX 1.3.6.1.4.1.99999.1.1.2.1.1
AUXILIARY
MAY ( myAttributeName )
X-ORIGIN 'Extending FreeIPA' )
This should work as far as I know and discussed on IRC and I also read it here:
https://www.redhat.com/archives/freeipa-users/2017-January/msg00222.html
I hope someone can explain what could be going wrong.
Thanks,
Matt