File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ public async Task<ComputerProperties> ReadComputerProperties(IDirectoryObject en
356356 props . Add ( "unconstraineddelegation" , flags . HasFlag ( UacFlags . TrustedForDelegation ) ) ;
357357 props . Add ( "trustedtoauth" , flags . HasFlag ( UacFlags . TrustedToAuthForDelegation ) ) ;
358358 props . Add ( "isdc" , flags . HasFlag ( UacFlags . ServerTrustAccount ) ) ;
359+ props . Add ( "isreadonlydc" , flags . HasFlag ( UacFlags . PartialSecretsAccount ) ) ;
359360 props . Add ( "encryptedtextpwdallowed" , flags . HasFlag ( UacFlags . EncryptedTextPwdAllowed ) ) ;
360361 props . Add ( "usedeskeyonly" , flags . HasFlag ( UacFlags . UseDesKeyOnly ) ) ;
361362 props . Add ( "logonscriptenabled" , flags . HasFlag ( UacFlags . Script ) ) ;
Original file line number Diff line number Diff line change @@ -464,13 +464,15 @@ public async Task LDAPPropertyProcessor_ReadComputerProperties_HappyPath()
464464 Assert . Contains ( "unconstraineddelegation" , keys ) ;
465465 Assert . Contains ( "trustedtoauth" , keys ) ;
466466 Assert . Contains ( "isdc" , keys ) ;
467+ Assert . Contains ( "isreadonlydc" , keys ) ;
467468 Assert . Contains ( "lastlogon" , keys ) ;
468469 Assert . Contains ( "lastlogontimestamp" , keys ) ;
469470 Assert . Contains ( "pwdlastset" , keys ) ;
470471 Assert . True ( ( bool ) props [ "enabled" ] ) ;
471472 Assert . False ( ( bool ) props [ "unconstraineddelegation" ] ) ;
472473 Assert . True ( ( bool ) props [ "trustedtoauth" ] ) ;
473474 Assert . False ( ( bool ) props [ "isdc" ] ) ;
475+ Assert . False ( ( bool ) props [ "isreadonlydc" ] ) ;
474476
475477 Assert . Contains ( "lastlogon" , keys ) ;
476478 Assert . Equal ( 1622827514 , ( long ) props [ "lastlogon" ] ) ;
You can’t perform that action at this time.
0 commit comments