Login | |
|
 |
Re: Modify Active Directory ACL for a Group - 3/28/2005 2:57:01 PM
|
|
 |
|
| |
chan_fookmun
Posts: 22
Score: 0
Joined: 3/17/2005
From:
Status: offline
|
Hi token, check out the url: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adam/adam/adsi_element_differences.asp Actually the value of the trustee should be the SID of the object which is being trusted in ADAM. However when i try to update the ACL into the disk,eg using the SetInfo method, i get an error as "(15,1) (null):The server is unwilling to process the request" What can be the problem? Is it related to the setting of my OS which is Windows XP? Here is my updated code: Option Explicit Dim ou, sd, dacl, ace Set ou = GetObject("LDAP://capia1.capd.com:389/CN=grouptest,CN=Roles,O=KKK,C=SG") Set sd = ou.Get("ntSecurityDescriptor") set dacl = sd.DiscretionaryAcl Set ace = CreateObject("AccessControlEntry") ace.trustee = "S-1-491339992-4003172615-1602629719-1240442435-3838501249-1630502247" ace.accessmask = &h80000000 ace.aceflags = &H3 ace.acetype = 0 dacl.addace ace sd.DiscretionaryAcl = dacl ou.Put "ntSecurityDescriptor", sd ou.SetInfo 'problem lies here WScript.Echo "Success"
|
|
| |
|
|
|
|
|