I have an array (propertyList) that contains the names of some Active Directory properties whose data I want to receive. Using the Ironpython library and .NET System.DirectoryServices I decide to search for loadable properties as follows:
for propertyActDir in propertyList: obj.PropertiesToLoad.Add(propertyActDir) res = obj.FindAll() myDict = {} for sr in res: for prop in propertyList: myDict[prop] = getField(prop,sr.Properties[prop][0])
The getField function is mine. How can I solve the same situation using the system.directoryservices.accountmanagement library? I think that this is impossible.
Thanks.
source share