Hello,
I am using openldap 2.4.11 and I am trying to add an attribute for "Date of Birth" for each user. In doing some googling I found 2 old emails showing 2 ways to extend a schema for this attribute.
Adam Tauno Williams wrote: attributetype ( 1.3.6.1.4.1.8506.1.2.11 NAME ( 'birthDate' 'dob' ) EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
and Michael Stroder wrote: # # Date of birth: # a numeric string restricted to syntax YYYYMMDD # attributetype ( 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} )
While looking at these two and the Schema Specification in the handbook I have gotten rather confused. Could I just drop one of these into file named local.schema (for example) add that path to the schema section of the slapd.conf and use it or is there more to it?
Thank you,
Peter