I've got a question, hopefully that someone has an answer to. Is there anyway to prevent an attribute from being inherited in the subclass? I've added my own custom attributes to the "mayContain" attribute of the user class and the computer class. I later realized that the computer class inherits from the user class and all of my custom attributes in the user class appear in all computer object instantiations. This, naturally, doesn't affect functionality however I would rather not see attributes, inherited from user class, appear in computer objects. Intially I though that there might be some attribute that I can use to exclude certain attributes that I don't want to see/use however there doesn't appear to be anything specific to this scenario. Ideas/Comments? - Danny
Nope. What you want to do most likely is create aux classes and assign the attributes to those aux classes and then dynamically add those classes to specific object instantiations. You usually don't want to dork with the base definitions anyway except adding additional static aux classes (but that wouldn't work in this case either). joe -- Joe Richards Microsoft MVP Windows Server Directory Services Author of O'Reilly Active Directory Third Edition www.joeware.net ---O'Reilly Active Directory Third Edition now available--- http://www.joeware.net/win/ad3e.htm Danny.deSousa@gmail.com wrote: > I've got a question, hopefully that someone has an answer to. Is there > anyway to prevent an attribute from being inherited in the subclass? > > I've added my own custom attributes to the "mayContain" attribute of > the user class and the computer class. I later realized that the > computer class inherits from the user class and all of my custom > attributes in the user class appear in all computer object > instantiations. This, naturally, doesn't affect functionality however I > would rather not see attributes, inherited from user class, appear in > computer objects. > > Intially I though that there might be some attribute that I can use to > exclude certain attributes that I don't want to see/use however there > doesn't appear to be anything specific to this scenario. > > Ideas/Comments? > > - Danny >