Skip to content

Commit

Permalink
chore: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Dec 16, 2024
1 parent 52de010 commit 129db7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CommonLib/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static string LdapValue(this Guid s)
/// <param name="methods"></param>
/// <returns></returns>
public static bool IsComputerCollectionSet(this CollectionMethod methods) {
const CollectionMethod test = CollectionMethod.ComputerOnly | CollectionMethod.LoggedOn | CollectionMethod.SmbInfo | CollectionMethod.SmbInfo;
const CollectionMethod test = CollectionMethod.ComputerOnly | CollectionMethod.LoggedOn | CollectionMethod.SmbInfo | CollectionMethod.WebClientService;
return (methods & test) != 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/CommonLib/LdapProducerQueryGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static GeneratedLdapParameters GenerateDefaultPartitionParameters(Collect
if (methods.HasFlag(CollectionMethod.SPNTargets))
properties.AddRange(CommonProperties.SPNTargetProps);

if (methods.HasFlag(CollectionMethod.DCRegistry) || methods.HasFlag(CollectionMethod.LdapServices))
if (methods.IsComputerCollectionSet())
properties.AddRange(CommonProperties.ComputerMethodProps);

if (methods.HasFlag(CollectionMethod.SPNTargets)) {
Expand Down

0 comments on commit 129db7b

Please sign in to comment.