-
Notifications
You must be signed in to change notification settings - Fork 50
[BED-6067] Add isReadOnlyDC property to computer objects #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v4
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughA new boolean property, Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/CommonLib/OutputTypes/Computer.cs (1)
22-22
: Add XML‐doc comment for public API surfaceEvery public property on our DTOs is currently documented.
Please add a short<summary>
so downstream code-gen and API consumers pick it up.- public bool IsReadOnlyDC { get; set; } + /// <summary> + /// True when the computer account represents a Read-Only Domain Controller (RODC) + /// </summary> + public bool IsReadOnlyDC { get; set; }test/unit/LdapPropertyTests.cs (1)
467-476
: Missing positive test for RODC detectionWe only assert the negative case (
false
).
Please add a second fixture withUserAccountControl |= 0x4000000
(PartialSecretsAccount) and assert that"isreadonlydc"
istrue
to prevent regressions.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/CommonLib/OutputTypes/Computer.cs
(1 hunks)src/CommonLib/Processors/LdapPropertyProcessor.cs
(1 hunks)test/unit/LdapPropertyTests.cs
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
🔇 Additional comments (1)
src/CommonLib/Processors/LdapPropertyProcessor.cs (1)
355-360
:isreadonlydc
flag added – verify it propagates to the finalComputer
instanceGood catch adding the flag.
Double-check that whatever code mapsComputerProperties.Props
→Computer
setsIsReadOnlyDC
from this new dictionary key; otherwise the new field will never reach the serialized output.#!/bin/bash # Locate any mapping code that copies props["isreadonlydc"] to Computer.IsReadOnlyDC rg -i --context 2 $'isreadonlydc"' | head
Description
Add isReadOnlyDC property to Computer objects, determined from UAC attribute.
Motivation and Context
BED-6067
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Tests