Skip to content

Commit

Permalink
chore: revert bad change
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jul 24, 2024
1 parent cab3c15 commit 1b7652c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CommonLib/Processors/ContainerProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ private static bool IsDistinguishedNameFiltered(string distinguishedName)
{
//This is always safe
var domain = Helpers.DistinguishedNameToDomain(distinguishedName);
return (true, new TypedPrincipal(domain, Label.Domain));
if (await _utils.GetDomainSidFromDomainName(domain) is (true, var domainSid)) {
return (true, new TypedPrincipal(domainSid, Label.Domain));
}

return (false, default);
}

return await _utils.ResolveDistinguishedName(containerDn);
Expand Down

0 comments on commit 1b7652c

Please sign in to comment.