<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic scripting adssecurity in BackOffice Products</title>
    <link>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849965#M1069</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;I'm trying to script adssecurity (tool from adsi sdk) in order to set permissions on a folder-structure. When I define a trustee from the activedirectory by name "MillerJ". The user is found and used. But if I want to set permissions for a server local group "SomeUsers", a group by the same name from somewhere in the activedirectory is used instead of the local group from the server. If I use the syntax "server1\SomeUsers" I get the funny error message "The security ID structure is invalid".&lt;BR /&gt;Now I'm looking for a way to address the local server group and get the correct user/group instead of just provide a name and get some user, that is found by coincidence somewhere in the ad. &lt;BR /&gt;Does anybody know how to do this? Do I have to retrieve the SID first and use it somehow, or is there a specific syntax I need to use?&lt;BR /&gt;&lt;BR /&gt;(N.B. I'm not using xcacls because it doesnt seem to be able to assign very specific permissions, but only predefined sets of permissions. But maybe I'm wrong in this)</description>
    <pubDate>Fri, 22 Nov 2002 07:28:28 GMT</pubDate>
    <dc:creator>Andre_19</dc:creator>
    <dc:date>2002-11-22T07:28:28Z</dc:date>
    <item>
      <title>scripting adssecurity</title>
      <link>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849965#M1069</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I'm trying to script adssecurity (tool from adsi sdk) in order to set permissions on a folder-structure. When I define a trustee from the activedirectory by name "MillerJ". The user is found and used. But if I want to set permissions for a server local group "SomeUsers", a group by the same name from somewhere in the activedirectory is used instead of the local group from the server. If I use the syntax "server1\SomeUsers" I get the funny error message "The security ID structure is invalid".&lt;BR /&gt;Now I'm looking for a way to address the local server group and get the correct user/group instead of just provide a name and get some user, that is found by coincidence somewhere in the ad. &lt;BR /&gt;Does anybody know how to do this? Do I have to retrieve the SID first and use it somehow, or is there a specific syntax I need to use?&lt;BR /&gt;&lt;BR /&gt;(N.B. I'm not using xcacls because it doesnt seem to be able to assign very specific permissions, but only predefined sets of permissions. But maybe I'm wrong in this)</description>
      <pubDate>Fri, 22 Nov 2002 07:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849965#M1069</guid>
      <dc:creator>Andre_19</dc:creator>
      <dc:date>2002-11-22T07:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: scripting adssecurity</title>
      <link>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849966#M1070</link>
      <description>Try SomeUsers@server1 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 21:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849966#M1070</guid>
      <dc:creator>Jon Finley</dc:creator>
      <dc:date>2002-11-22T21:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: scripting adssecurity</title>
      <link>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849967#M1071</link>
      <description>Hi Jon&lt;BR /&gt;&lt;BR /&gt;Thanks for your help, but I still get the same error-message, stating that the security ID structure is invalid. &lt;BR /&gt;The code I use is:&lt;BR /&gt;&lt;BR /&gt;set objace = createobject("accessControlEntry")&lt;BR /&gt;objace.trustee = mylocalgroup@myserver1&lt;BR /&gt;objACE.Aceflags = OBJECT_INHERIT_ACE + CONTAINER_INHERIT_ACE&lt;BR /&gt;objAce.Acetype = ACCESS_ALLOWED_ACETYPE&lt;BR /&gt;objAce.Accessmask = FILE_LIST_DIRECTORY&lt;BR /&gt;&lt;BR /&gt;set objadssec = createobject("ADssecurity")&lt;BR /&gt;set objsecdesk = objadssec.getsecuritydescription("FILE://\\myserver1\myfolder")&lt;BR /&gt;set objDacl = objsecdesc.discretionaryACL&lt;BR /&gt;objsecdesc.discretionaryacl = objdacl&lt;BR /&gt;call objadssec.SetSecurityDescription(objSecdesc)&lt;BR /&gt;&lt;BR /&gt;the error occurs in the last statement. I'm really not sure, if the problem might occur, because I use local groups instead of users. &lt;BR /&gt;&lt;BR /&gt;Thanx&lt;BR /&gt;Andre</description>
      <pubDate>Fri, 29 Nov 2002 08:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/backoffice-products/scripting-adssecurity/m-p/2849967#M1071</guid>
      <dc:creator>Andre_19</dc:creator>
      <dc:date>2002-11-29T08:26:59Z</dc:date>
    </item>
  </channel>
</rss>

