I'd like to add custom attributes in OpenLDAP but I maybe do not understand the concept. What I've done was:
I created the custom.schema
attributetype ( 1.3.6.1.4.1.4203.666.100.122
NAME ( 'dateOfBirth' )
SUP name
)
attributetype ( 1.3.6.1.4.1.4203.666.100.123
NAME ( 'IPPhone' )
SUP name
)
objectclass ( 1.3.6.1.4.1.4203.666.100.1
NAME 'customAttributes'
DESC 'Custom attributes class'
)
I added to slapd.conf
include /usr/local/etc/openldap/schema/custom.schema
And now I'd like to assign this object class to every uid I have in the current database. So I dumped the db, added objectclass atribute to some uid, and while importing the LDIF, ldap says:
65) invalid structural object class chain (inetOrgPerson/customAttributes)
The LDIF entry is like this:
dn: dc=sss,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: sss.com
dc: sss
structuralObjectClass: organization
dn: ou=People,dc=sss,dc=com
objectClass: organizationalUnit
ou: People
structuralObjectClass: organizationalUnit
dn: uid=zzz,ou=People,dc=sss,dc=com
objectClass: posixAccount
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: customAttributes
structuralObjectClass: inetOrgPerson
...
Could you please navigate me how can I add those custom attributes ?