Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADSI General > IADsSecurityUti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5326 of 5419
Post > Topic >>

IADsSecurityUtility ConvertSecurityDescriptor Problem

by "Philipp Foeckeler" <philipp.foeckeler@[EMAIL PROTECTED] > Jul 17, 2008 at 12:27 AM

Hi, here is my problem:

i'm using VB.NET 2005 and i'm trying to decode a ntSecurityDescriptor for
AD 
objects in a foreign untrusted domain. To achieve this, i get the raw
octet 
data for this atribute from an object with ADSI-LDAP and convert it to a 
IADsSecurityDescriptor with the IADsSecurityUtility Interface:

Dim sUtil As New ADsSecurityUtility()
Dim sd As ActiveDs.SecurityDescriptor
Dim rawData As Byte()       ....<- i fill this with the LDAP data from 
ntSecurityDescriptor attributes...
....
sd = sUtil.ConvertSecurityDescriptor(data, 
ADS_SD_FORMAT_ENUM.ADS_SD_FORMAT_RAW,
ADS_SD_FORMAT_ENUM.ADS_SD_FORMAT_IID)

The output security descriptor object is filled correctly after this, BUT 
sometimes this is REALLY SLOW (10 sec...), far to slow for checking many 
DACLs in the directory. Maybe this is because the
ConvertSecurityDescriptor 
method tries to resolve the SIDs in the security descriptor to friendly 
names and cannot because these are SIDs from a foreign untrusted domain?
How 
can i speed up this? Is there any other possibility to decode the raw data

or is there any do***entation of the data structure of an 
ntSecurityDescriptor so that i could decode this by myself without 
SID-account-resolving???

Thank you alot for hints,
Philipp
 




 3 Posts in Topic:
IADsSecurityUtility ConvertSecurityDescriptor Problem
"Philipp Foeckeler&q  2008-07-17 00:27:10 
Re: IADsSecurityUtility ConvertSecurityDescriptor Problem
"Joe Kaplan" &l  2008-07-16 19:14:55 
Re: IADsSecurityUtility ConvertSecurityDescriptor Problem
"Philipp Foeckeler&q  2008-07-17 18:07:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 16:12:18 CST 2008.