Chun Tat David Chu
2006-Jul-12 14:06 UTC
[Fedora-directory-users] Question on Schema Object Class Inheritance
Hi, I think I got the answer, but I would like to confirm that if I''m correct. At any given time, a single object class can only inherit from one and only one object class (no multiple inheritance). For example, if I have 3 object classes 1. objectclassA with attribute1 2. objectclassB with attribute2 3. objectclassC with attribute3 Then objectclassC can only either inherit from objectclassA or objectclassB. If I want multiple inheirtance, then I''ll need the following setup 1. objectclassB inherits from objectclassA 2. objectclassC inheirts from objectclassB If I am correct about the object class inheritance, so that means thdoes this rule only apply on Fedora Directory Server or it applies to all other LDAP-enabled directory servers? Thanks! David Chu
Mike Jackson
2006-Jul-12 14:46 UTC
Re: [Fedora-directory-users] Question on Schema Object Class Inheritance
Chun Tat David Chu wrote:> Hi, > > I think I got the answer, but I would like to confirm that if I''m correct. > > At any given time, a single object class can only inherit from one and > only one object class (no multiple inheritance). > > For example, if I have 3 object classes > 1. objectclassA with attribute1 > 2. objectclassB with attribute2 > 3. objectclassC with attribute3 > Then objectclassC can only either inherit from objectclassA or objectclassB.Correct.> If I want multiple inheirtance, then I''ll need the following setup > 1. objectclassB inherits from objectclassA > 2. objectclassC inheirts from objectclassBNo, it doesn''t work. Superior classes can only inherit from top. Mike -- http://www.netauth.com - LDAP Directory Consulting
Dirk Kastens
2006-Jul-12 14:49 UTC
Re: [Fedora-directory-users] Question on Schema Object Class Inheritance
Hi, Chun Tat David Chu schrieb:> At any given time, a single object class can only inherit from one and > only one object class (no multiple inheritance).No. In the Tivoli IBM Directory Server an objectclass can inherit from multiple objectclasses. Regards, Dirk Kastens
Chun Tat David Chu
2006-Jul-12 18:20 UTC
Re: [Fedora-directory-users] Question on Schema Object Class Inheritance
Mike,> If I want multiple inheirtance, then I''ll need the following setup > 1. objectclassB inherits from objectclassA > 2. objectclassC inheirts from objectclassB>> No, it doesn''t work. Superior classes can only inherit from top.Um... That''s strange, because I''m able to do that. Maybe my description is not clear? If I have the following schema setup 1. objectClassA with attribute1 inherits from top 2. objectClassB with attribute2 inherits from objectClassA 3. objectClassC with attribute3 inherits from objectClassB then I can achieve multiple schema object class inheritance. objectClassC will contains attribute1, attribute2 and attribute3. objectClassA is my superior class who inherits from top. Am I correct? Thanks, David Chu On 7/12/06, Mike Jackson <mj@sci.fi> wrote:> > Chun Tat David Chu wrote: > > Hi, > > > > I think I got the answer, but I would like to confirm that if I''m > correct. > > > > At any given time, a single object class can only inherit from one and > > only one object class (no multiple inheritance). > > > > For example, if I have 3 object classes > > 1. objectclassA with attribute1 > > 2. objectclassB with attribute2 > > 3. objectclassC with attribute3 > > Then objectclassC can only either inherit from objectclassA or > objectclassB. > > Correct. > > > > If I want multiple inheirtance, then I''ll need the following setup > > 1. objectclassB inherits from objectclassA > > 2. objectclassC inheirts from objectclassB > > No, it doesn''t work. Superior classes can only inherit from top. > > > Mike > -- > http://www.netauth.com - LDAP Directory Consulting > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Mike Jackson
2006-Jul-13 19:49 UTC
Re: [Fedora-directory-users] Question on Schema Object Class Inheritance
Chun Tat David Chu wrote:> > Um... That''s strange, because I''m able to do that. > Maybe my description is not clear? > > If I have the following schema setup > 1. objectClassA with attribute1 inherits from top > 2. objectClassB with attribute2 inherits from objectClassA > 3. objectClassC with attribute3 inherits from objectClassB > then I can achieve multiple schema object class inheritance. > > objectClassC will contains attribute1, attribute2 and attribute3. > > objectClassA is my superior class who inherits from top. > > Am I correct?You''re correct. I was confused when I read your description. My bad. BR, Mike