Tech Support > Operating Systems > Windows 2003 > Script for adding possible superior classes
Script for adding possible superior classes
Posted by Johan on November 19th, 2003


I have defined some new objectClasses in my schema which practically uses standard classes. I have a script that creates these classes and also defines the "possible superior classes".

Now I need to modify the constraints on a few of the standard classes, e.g. container, so I can have my own new class as a "possible superior class" to e.g. the container. Now - how does that script look like ? I guess I need a script to modify the classdefinition. I can do the same procedure in the schmmgmt without problems.

This is for the ADAM so I don't see any problems of sideeffects by relaxing the original schema in ADAM.

TIA

Johan

Posted by Dmitri Gavrilov [MSFT] on November 19th, 2003


You basically need to update possSuperiors attributes on those classes.
Sorry, can't provide an ADSI script for you. But you could also do this with
ldifde:

dn: CN=Container,CN=Schema,CN=Configuration,DC=X
changetype: modify
add: possSuperiors
possSuperiors: yourClassNameHere
possSuperiors: yourOtherClassNameHere
-



--
Dmitri Gavrilov
SDE, Active Directory Core

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Johan" <anonymous@discussions.microsoft.com> wrote in message
news:2C2EBF63-3A40-4A55-A57E-A79AE35C636D@microsoft.com...
defines the "possible superior classes".
class" to e.g. the container. Now - how does that script look like ? I
guess I need a script to modify the classdefinition. I can do the same
procedure in the schmmgmt without problems.



Similar Posts