I am using ApacheDS Server as an LDAP Server. I have created a custom attribute to use in my LDAP structure that I have defined. I have created a schema and inside the Schema I have defined an ObjectClass and an attribute called dateOfBirth. I exported the Schema and imported it into the DIT of ApacheDS. The schema is imported and can view the dateOfBirth attribute.
However, when I try to add it I get a warning saying:
Warning according to the schema attribute dateOfBirth is not allowed.
Do you still want to add the new value?
The dateOfBirth is to store information about a Person. The Person object class in LDAP is called inetOrgPerson ObjectClass. What is the best way to add the dateOfBirth in order to use it?
There is no need to define a
dateOfBirthattribute. The auxiliary objectClassnaturalPerson– described in RFC2985 – already allows this attribute usinggeneralizedTimeSyntax. Add thenaturalPersonobjectClass to your entry, then add adateOfBirthattribute that conforms togeneralizedTimeSyntax.and so forth.
Update: example objectClass definition from RC2985.