[Date Prev][Date Next] [Chronological] [Thread] [Top]

Extending Schema


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 (
        NAME ( 'birthDate' 'dob' )
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX{128} )

and Michael Stroder wrote: # # Date of birth: # a numeric string restricted to syntax YYYYMMDD # attributetype ( NAME ( 'dateOfBirth' ) DESC 'Date of birth (format YYYYMMDD, only numeric chars)' EQUALITY numericStringMatch SUBSTR numericStringSubstringsMatch SINGLE-VALUE SYNTAX{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,