[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: top object class contains all possible attributes?
- To: openldap-technical@openldap.org
- Subject: Re: top object class contains all possible attributes?
- From: Dario Zanzico <dario@dariozanzico.com>
- Date: Tue, 28 Apr 2015 07:48:01 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=raA82Qy63cjkRL1 FRIOBX1FWkGw=; b=Bmet70el0NFdCjWP7acVZvYnRuBxzi5R5+WGNwjXu/YjEZA Kqk2GmXB4k3sQI1R/N1xsu3BICky7r40WdTJPD0vz0abQDfDrz1fqzVWodmpc29+ zuC98DMJL06eSyShzInWaTEniu+rw2hnpJaa00QlxO0eTZl99gk7uGDT2T5A=
- In-reply-to: <553F18CC.3050509@gmail.com>
- References: <553F18CC.3050509@gmail.com>
On Tue, Apr 28, 2015, at 07:21 AM, dE wrote:
> From https://tools.ietf.org/html/rfc4512
>
> it
> can be said that an object class inherits the sets of *allowed*
> and
> required attributes from its superclasses
>
> Therefore the top object class contains all possible attributes? OR
no
> A subclasses cannot contain any attribute which is not included in it's
> superclass?
no
A subclass contains definitions for
all the MAY attributes that the superclass contains as MAY attributes,
and
all the MUST attributest that the superclass contains as MUST
attributes.
therefore, an entry including our inheriting subclass:
MUST contain all the MUST attributes included in the superclass(es)
MUST contain all the MUST attributes included in our subclass
MAY contain all the MAY attributes included in the superclass(es)
MAY contain all the MAY attributes included in our subclass
as an example:
given this objectClasses 'tree':
objectClasses: ( 0.0.0.0 NAME 'myparent' MUST cn MAY uid )
objectClasses: ( 0.0.0.1 NAME 'mysub' SUP myparent MUST mail MAY mobile
)
an entry containing the sub objectClass mysub
MUST contain: cn (inherited from myparent), mail
MAY contain: uid (inherited from myparent), mobile
hope this helps
bye,
dario