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, 23 May 2005 17:27:24 -0400,    group: microsoft.public.platformsdk.adsi        back       


Modifying nTSecurityDescriptor via MIIS   
Has anyone done this successfully?

I've been trying via both COM and P/Invoke interop to manipulate the 
attribute for Active Directory user objects.  I've run into dead ends with 
each.

In the COM approach, the IADsSecurityUtility::ConvertSecurityDescriptor 
method gives me a valid security descriptor from the MIIS-provided byte 
array but I'm getting extra bits (as compared to the original byte array 
once the SD has been converted back).  Apparently the extra bits are 
meaningless to Windows (the ACL is properly set after an MIIS export) but 
they get discarded by AD, this causes some MIIS-specific issues.

In the Win32 approach the data just doesn't seem quite right.  Some of the 
functions work, like IsValidSecurityDescriptor() and IsValidAcl(), but 
others, like SetSecurityDescriptorOwner, return error #1336 
ERROR_INVALID_ACL.  I'm hoping someone here can offer some suggestions about 
what might cause this condition.

Hugh
date: Mon, 23 May 2005 17:27:24 -0400   author:   Hugh Kelley

Google
 
Web ureader.com


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