Closed yghrt closed 9 months ago
Hi @yghrt , the Manager attribute is a linked value, so the LinkResolver class must be used to get its value, similarly to the way how NGC and DPAPI keys are handled.
Thank you very much for this informatiom, however since I'm not that profound or good in C# coding, I could not make it work yet, but I will close this issue now as this will be a long ongoing project for me.
Hi, I've tried to modify the code to include more attributes when calling 'Get-ADDBAccount', so this way I don't have to use LDAP or get-aduser to get the remaining attributes for the users I can get with it, this is necessary for the whole password audit process I'm trying to set up, but at 80k+ users it takes 11-12 hours to get all the necessary/remaining attributes for every user.
I managed to set up the 'mail' and some other attributes already, and they show up fine, and I've found the corresponding column IDs for them, but it seems like I'm having problems with the 'Manager' attribute, as now I'm getting Get-ADDBAccount : Object reference not set to an instance of an object.
I am very much likely missing something, as I'm not that good with C# codes. Can you help me identify what I'm doing wrong?
I modified the code in the following way:
DSAccount.cs
CommonDirectoryAttributes.cs:
BasicSchemaFactory.cs:
Here's the stacktrace:
############# Update while writing this, I've also tried the following, but same error message different stack trace
DSAccount.cs
BasicSchemaFactory.cs: