Directory Services |
The property methods of the IADsSecurityDescriptor interface get or set the properties described in the following table. For more information, see Interface Property Methods.
Property | Description |
---|---|
Revision
[Visual Basic] [C++] |
Revision level of the security descriptor. This value is taken from the Win32 ACL_REVISION_INFORMATION structure. All ACEs in an ACL must be at the same revision level. |
Control
[Visual Basic] [C++] |
Flags that qualify the meaning of the security descriptor. Values are taken from the Win32 SECURITY_DESCRIPTOR_CONTROL structure. |
Owner
[Visual Basic] [C++] |
Owner of the object. |
OwnerDefaulted
[Visual Basic] [C++] |
A flag of the BOOL type that indicates that the owner data is derived from a default mechanism, rather than being explicitly provided by the original provider of the security descriptor. |
Group
[Visual Basic] [C++] |
Group to which the owner's security ID belongs. |
GroupDefaulted
[Visual Basic] [C++] |
A flag of the BOOL type that indicates if the group data is derived from a default mechanism, rather than being explicity provided by the original provider of the security descriptor. |
DiscretionaryAcl
[Visual Basic] [C++] |
Discretionary access-control list (DACL) that specifies the types of access granted to the object for specified users and groups. For more information on DACLs, see Null DACLs and Empty DACLs. |
DaclDefaulted
[Visual Basic] [C++] |
A flag of the BOOL type that indicates if the DACL is derived from a default mechanism, rather than being provided explicitly by the original provider of the security descriptor. For example, if an object's creator does not specify a DACL, the object receives the default DACL from the creator's access token. This flag can affect how the system treats the DACL, with respect to ACE inheritance. The system ignores this flag if the SE_DACL_PRESENT flag is not set. |
SystemAcl
[Visual Basic] [C++] |
System access-control list used to generate audit records for the object. |
SaclDefaulted
[Visual Basic] [C++] |
A flag of the BOOL type that indicates that the SACL is derived from a default mechanism, rather than being explicitly provided by the original provider of the security descriptor. This flag can affect how the system handles the SACL, with respect to ACE inheritance. The system ignores this flag if the SE_SACL_PRESENT flag is not set. |
The following code example shows how to enumerate an existing security descriptor.
Dim ou As IADs Dim sd As IADsSecurityDescriptor Dim dacl As IADsAccessControlList Dim sacl As IADsAccessControlList On Error GoTo Cleanup Set ou = GetObject("LDAP://OU=Sales,DC=Fabrikam,DC=com") Set sd = ou.Get("ntSecurityDescriptor") Debug.Print sd.Owner Debug.Print sd.Group Debug.Print sd.Owner Debug.Print sd.Revision Set dacl = sd.DiscretionaryAcl Set sacl = sd.SystemAcl ' Add code to do something with the Discretionary and System ACLs. Cleanup: If (Err.Number<>0) Then MsgBox("An error has occurred. " & Err.Number) End If Set ou = Nothing Set sd = Nothing Set dacl = Nothing Set sacl = Nothing
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.