Skip to content

Commit

Permalink
fix: collect container acl correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jan 18, 2024
1 parent e973b35 commit 367fdb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Runtime/ObjectProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,18 +498,18 @@ private Container ProcessContainerObject(ISearchResultEntry entry,
ret.Properties.Add("distinguishedname", entry.DistinguishedName.ToUpper());
ret.Properties.Add("domainsid", resolvedSearchResult.DomainSid);

if ((_methods & ResolvedCollectionMethod.Container) != 0)
if ((_methods & ResolvedCollectionMethod.Container) != 0 || (_methods & ResolvedCollectionMethod.CertServices) != 0)
ret.ContainedBy = _containerProcessor.GetContainingObject(entry.DistinguishedName);

if ((_methods & ResolvedCollectionMethod.ACL) != 0)
if ((_methods & ResolvedCollectionMethod.ACL) != 0 || (_methods & ResolvedCollectionMethod.CertServices) != 0)
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry)
.ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0 || (_methods & ResolvedCollectionMethod.CertServices) != 0)
{
if (_context.Flags.CollectAllProperties)
{
Expand Down

0 comments on commit 367fdb0

Please sign in to comment.