Talk About Network

Google





Software > ADSI General > Adding an Auxil...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5271 of 5437
Post > Topic >>

Adding an AuxiliaryClass

by =?Utf-8?B?Zml4aXRjaHJpcw==?= <fixitchris@[EMAIL PROTECTED] May 8, 2008 at 05:21 PM

What I am trying to accomplish is to create an auxiliary schema class to
the 
"user" schema class and create a user with the properties I have added to
the 
auxiliary class.  Once I save the new schema class to the ADAM schema, it 
automatically becomes an auxiliary class to the "user" schema class.  
However, this is not true.  Whenever I try to assign a value to these new 
properties I get a constraints error. I am unable to set my new properties

after creating a user, unless I go into the ADAM Schema MMC snap-in and 
explicitly add this new class as to the auxiliary cl***** of "user".  When
I 
try to add "contosoClass" to the auxiliaryCl***** collection in my code, 
however, I get an error that "contosoClass" already exists in 
"user".auxiliaryCl*****.  I am able to verify this by iterating the 
auxiliaryCl***** collectin of "user".  I am unable to remove
"contosoClass" 
from the AuxiliaryCl***** collection of "user" schema class
programatically 
with an error of some super class inheritance.


What I have done is installed an ADAM SP1 instance and created a 
ActiveDirectorySchemaClass below.  

adsSchemaClass.CommonName = "contosoClass"
adsSchemaClass.Description = "my class"
adsSchemaClass.Oid = {oid}
adsSchemaClass.SchemaGuid = {guid}
adsSchemaClass.SubClassOf = "top"
adsSchemaClass.Type = Auxiliary

adsSchemaClass.OptionalProperties.Add("contosoProp1")
adsSchemaClass.OptionalProperties.Add("contosoProp2")
adsSchemaClass.OptionalProperties.Add("contosoProp3")

adsSchemaClass.SAVE


Any ideas?

Chris
 




 1 Posts in Topic:
Adding an AuxiliaryClass
=?Utf-8?B?Zml4aXRjaHJpcw=  2008-05-08 17:21:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 21:17:27 PST 2009.