[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Date Attribute
Stella Korakaki wrote:
Hi everyone.I would like to know if there are any already defined
attributes for birthday ? I searched the common schemas provided with
openldap but I didn't find anything.
This general topic would be best discussed on ldap@umich.edu list.
Personally I'm using:
#
# 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} )
In opposite to PKI-related RFC 2985 which uses GeneralizedTime syntax:
------------------------------- snip -------------------------------
5.2.4 Date of birth
The dateOfBirth attribute specifies the date of birth for the subject
it is associated with.
dateOfBirth ATTRIBUTE ::= {
WITH SYNTAX GeneralizedTime
EQUALITY MATCHING RULE generalizedTimeMatch
SINGLE VALUE TRUE
ID pkcs-9-at-dateOfBirth
}
dateOfBirth attributes must be single-valued. The
generalizedTimeMatch matching rule is defined in [8].
------------------------------- snip -------------------------------
I prefer my NumericString approach over using GeneralizedTime syntax since
setting the time is not clearly specified for dateOfBirth => matching can
get difficult.
Ciao, Michael.