r/adsec • u/SConstantinou • Mar 20 '18
PowerShell Active Directory Delegation - Part 2
https://www.sconstantinou.com/powershell-active-directory-delegation-part-2/
3
Upvotes
r/adsec • u/SConstantinou • Mar 20 '18
1
u/sup3rlativ3 Mar 20 '18
Very nice article, thank you.
I will note though that the experience on mobile is terrible. The ads cover a good portion of the screen and scrolling is very jerky. I'm using a Pixel 2 XL so it should have more than enough front to render a page.
1
u/breakwaterlabs Mar 18 '24
You mention gathering the GUIDs to resolve the ACLs. Ive been developing a module to interact with delegations for some time and the GUID hashtable has been a thorn in my side for some time because gathering those GUIDs is somewhat slow, and passing a global variable or some massive hashtable as a parameter seems hacky.
The best solution I've found has two pieces:
adsicalls to resolve GUIDs very efficiently by querying the schemaDoing it this way has been orders of magnitude faster than starting the
get-dsaclfunction with a big "get me all the GUIDs" query and I imagine with substantially lower memory and LDAP load to boot. It went from taking ~500-1500 ms per authorizationRuleCollection to around 10-20ms.Check out my approach here:
https://gitlab.com/breakwaterlabs/ad-rbac/-/blob/main/modules/ADDSInfo/ADDSInfo.psm1?ref_type=heads#L735