
July 4th, 2005, 03:57 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 1
Time spent in forums: 11 m 56 sec
Reputation Power: 0
|
|
|
ADSI Adjust classes in Active Directory Schema
Hey,
I have a problem with my script. I have to make a few attributes and classes in Active Directory. This works but now I have to add the newly created attributes as optional attributes for the object “user”.
Normally this should do the trick.
objClass = GetObject("LDAP://cn=user," & objRootDSE.Get("schemaNamingContext"))
objClass.GetInfo
objClass.Put "mayContain", Array("1.3.6.1.4.1.11256.0.0.2.0.1","1.3.6.1.4.1.11256.0.0.2.0.2","1.3.6.1.4.1.11256.0.0.2.0.0","1.3.6.1.4.1.11256.0.0.1.0.0","1.3.6.1.4.1.11256.0.0.1.2.0","1.3.6.1.4.1.11256.0.0.1.1.0","1.3.6.1.4.1.11256.0.0.1.1.1","1.3.6.1.4.1.11256.0.0.3.0.0")
objClass.SetInfo
I get an error on the first line saying:
Text: "Wrong number of arguments or invalid property assignment"
Code: 800A01C2
Can anyone help me?
Greetzz and tnx
GiCe
|