File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class Computer : OutputBase {
19
19
public DCRegistryData DCRegistryData { get ; set ; } = new ( ) ;
20
20
public ComputerStatus Status { get ; set ; }
21
21
public bool IsDC { get ; set ; }
22
+ public bool IsReadOnlyDC { get ; set ; }
22
23
public bool UnconstrainedDelegation { get ; set ; }
23
24
public string DomainSID { get ; set ; }
24
25
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ public async Task<ComputerProperties> ReadComputerProperties(IDirectoryObject en
356
356
props . Add ( "unconstraineddelegation" , flags . HasFlag ( UacFlags . TrustedForDelegation ) ) ;
357
357
props . Add ( "trustedtoauth" , flags . HasFlag ( UacFlags . TrustedToAuthForDelegation ) ) ;
358
358
props . Add ( "isdc" , flags . HasFlag ( UacFlags . ServerTrustAccount ) ) ;
359
+ props . Add ( "isreadonlydc" , flags . HasFlag ( UacFlags . PartialSecretsAccount ) ) ;
359
360
props . Add ( "encryptedtextpwdallowed" , flags . HasFlag ( UacFlags . EncryptedTextPwdAllowed ) ) ;
360
361
props . Add ( "usedeskeyonly" , flags . HasFlag ( UacFlags . UseDesKeyOnly ) ) ;
361
362
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()
464
464
Assert . Contains ( "unconstraineddelegation" , keys ) ;
465
465
Assert . Contains ( "trustedtoauth" , keys ) ;
466
466
Assert . Contains ( "isdc" , keys ) ;
467
+ Assert . Contains ( "isreadonlydc" , keys ) ;
467
468
Assert . Contains ( "lastlogon" , keys ) ;
468
469
Assert . Contains ( "lastlogontimestamp" , keys ) ;
469
470
Assert . Contains ( "pwdlastset" , keys ) ;
470
471
Assert . True ( ( bool ) props [ "enabled" ] ) ;
471
472
Assert . False ( ( bool ) props [ "unconstraineddelegation" ] ) ;
472
473
Assert . True ( ( bool ) props [ "trustedtoauth" ] ) ;
473
474
Assert . False ( ( bool ) props [ "isdc" ] ) ;
475
+ Assert . False ( ( bool ) props [ "isreadonlydc" ] ) ;
474
476
475
477
Assert . Contains ( "lastlogon" , keys ) ;
476
478
Assert . Equal ( 1622827514 , ( long ) props [ "lastlogon" ] ) ;
You can’t perform that action at this time.
0 commit comments