All Forums >> [Scripting] >> WSH & Client Side VBScript >> Re: Modify Active Directory ACL for a Group Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hi token, i just went to the server 2003 to explore and found that there did not exist a class called "container" when you create a new object. Only classes like "computers","contact","printer", "shared folder" etc can be found. In ADAM when i create a new object, classes like "container","country","locality" etc can be found...
That means to say a "container" object will start its DN as "CN=" and a "country" object will start its DN as "C="
I believe the problem does not lie in the LDAP path. It has something to with the SetInfo method in vbscript or the CommitChanges method in .NET. This can be indirectly caused by some settings which can be the OS.....
Maybe i mislead you the term "container" somewhere and thus i will like to clarify it
I had no experience so I can't only speculate on what went wrong. In the world of ADSI, a container object can be either an OU or a domain. Therefore, to put what you have into the correct ADsPath, it would be: CN=grouptest,OU=Roles,DC=KKK,DC=SG. What this says is that a group object called Grouptest resides in an OU call Roles which DIRECTLY belongs to a domain call KKK.sg.
AGAIN, ONLY if you could post the exact ADsPath (or whatever it is called in the ADAM world, you may modify the NAME of the exact names if you don't wish to have the REAL name posted in public) of the Grouptest object and post the results from the following command, I'm afraid I can't be of more help since I don't have ADAM to test.
No actually you are a great help to me. At least your code is able to run in my ADAM instance in server 2003 successfully. It is a pity that in windows xp it cannot be run.Anyway thank you for your help....