Can't find a solution on the internet. I tried this but it does not work. I would appreciate any help (LDAP really is a headache).
root@9ae33b5bc07e:/# ldapadd -Y EXTERNAL -H ldapi:/// -f add_attribute.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldapadd: invalid format (line 4) entry: "cn=schema,cn=config"
root@9ae33b5bc07e:/# cat add_attribute.ldif
dn: cn=schema,cn=config
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.5427.1.389.4.2
NAME 'dateOfBirth'
DESC 'Date of birth (format YYYYMMDD, only numeric chars)'
EQUALITY numericStringMatch
SUBSTR numericStringSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{8}
)