
|
email this FAQ to a colleague
Q:
I am trying to programmatically create a OU and CNs under it. The
creation of OU succeeds but CN does not get created. I get an error on the
SetInfo for the CN.
A:
This code should fail:
set otTemp = otTest.Create("member", "cn=gopa")
since you're not adding the value for the guid - a required attribute (mustContain).
If you used the following code, your bits would succeed:
set oTemp = otTest.Create("member", "cn=gopa")
oTemp.Put "GUID", CStr([your guid value here])
oTemp.SetInfo
- Rob Howard
|