fix: Process objectguid as common property - BED-7397#270
Conversation
WalkthroughCentralizes ObjectGUID extraction into Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/CommonLib/Processors/LdapPropertyProcessor.cs`:
- Around line 56-63: The code is invoking a dictionary entry as a function at
ret["objectguid"](LDAPProperties.ObjectGUID, guid.ToString().ToUpper()); —
replace that with a direct assignment to the "objectguid" dictionary key so the
value stores the GUID string (formatted with ToUpper()) and includes the
LDAPProperties.ObjectGUID info as the value payload as your dictionary type
expects; locate this in LdapPropertyProcessor inside the
entry.TryGetByteProperty(LDAPProperties.objectguid, out var objectguid) block
and change the invocation to a proper assignment (keeping the key "objectguid"
unchanged so downstream consumers like SharpHound rely on the same key).
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
Description
Adds ObjectGUID processing support as a common property
Motivation and Context
Resolves: BED-7397
How Has This Been Tested?
Help me team!
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
Bug Fixes
Tests