Skip to content

Commit 773cc2f

Browse files
authored
chore: bump versions, fix forestrootid (#109)
1 parent f17436e commit 773cc2f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Sharphound.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<LangVersion>latest</LangVersion>
77
<DebugType>full</DebugType>
88
<ApplicationIcon>favicon.ico</ApplicationIcon>
9-
<Version>2.5.2</Version>
10-
<FileVersion>2.5.2</FileVersion>
9+
<Version>2.5.3</Version>
10+
<FileVersion>2.5.3</FileVersion>
1111
<Company>SpecterOps</Company>
1212
<Product>SharpHound</Product>
1313
<AssemblyName>SharpHound</AssemblyName>
@@ -24,8 +24,8 @@
2424
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
2525
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
2626
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
27-
<PackageReference Include="SharpHoundCommon" Version="4.0.2" />
28-
<PackageReference Include="SharpHoundRPC" Version="4.0.2" />
27+
<PackageReference Include="SharpHoundCommon" Version="4.0.3" />
28+
<PackageReference Include="SharpHoundRPC" Version="4.0.3" />
2929
<PackageReference Include="SharpZipLib" Version="1.3.3" />
3030
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
3131
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />

src/Runtime/ObjectProcessors.cs

+4
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ private async Task<Domain> ProcessDomainObject(IDirectoryObject entry,
349349
var ret = new Domain {
350350
ObjectIdentifier = resolvedSearchResult.ObjectId
351351
};
352+
353+
if (await _context.LDAPUtils.GetForest(resolvedSearchResult.DisplayName) is (true, var forest) && await _context.LDAPUtils.GetDomainSidFromDomainName(forest) is (true, var forestSid)) {
354+
ret.ForestRootIdentifier = forestSid;
355+
}
352356

353357
ret.Properties = new Dictionary<string, object>(GetCommonProperties(entry, resolvedSearchResult));
354358

0 commit comments

Comments
 (0)