Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 30 May 2005 00:31:13 +0200,    group: microsoft.public.platformsdk.adsi        back       


Meaning of ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED   
In a C# application I'm trying to modify an ACL on a folder.
Besides the inherited ACEs I want to add one more ACE. But I'm noticing that 
if I read and write the security descripter, even without modifying it, the 
flag ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED in sd.Control is being reset.

If I write the SD with this code the flag is reset:
IADsSecurityDescriptor sd = securityUtility.GetSecurityDescriptor(strFolder, 
ADS_PATHTYPE_ENUM.ADS_PATH_FILE, ADS_SD_FORMAT_ENUM.ADS_SD_FORMAT_IID) as 
IADsSecurityDescriptor;
securityUtility.SetSecurityDescriptor(strFolder, 
ADS_PATHTYPE_ENUM.ADS_PATH_FILE, sd, ADS_SD_FORMAT_ENUM.ADS_SD_FORMAT_IID);

If the SD is written with other tools, including the GUI, the flag seems to 
be set again.

What does this flag mean and does it matter that it's not set ?
I can't see any change in the GUI whether its set or not.
Can I write the SD in some other way that does not reset this flag ?


Thanks in advance,
Jan Nielsen
date: Mon, 30 May 2005 00:31:13 +0200   author:   Jan Nielsen am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us