Skip to content

Commit

Permalink
Merge branch 'v4' into BED-4836
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar authored Sep 17, 2024
2 parents e3fb240 + dd20a7b commit d7feb12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CommonLib/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ public static IRegistryKey OpenRemoteRegistry(string target) {
CommonOids.SmartcardLogon,
CommonOids.AnyPurpose
};

public static string[] SchannelAuthenticationOIDs = new string[] {
CommonOids.ClientAuthentication,
CommonOids.AnyPurpose
};
}

public class ParsedGPLink {
Expand Down
5 changes: 5 additions & 0 deletions src/CommonLib/Processors/LdapPropertyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ public static Dictionary<string, object> ReadCertTemplateProperties(IDirectoryOb
effectiveekus.Intersect(Helpers.AuthenticationOIDs).Any() | effectiveekus.Length == 0;
props.Add("authenticationenabled", authenticationEnabled);

// Construct schannelauthenticationenabled
var schannelAuthenticationEnabled =
effectiveekus.Intersect(Helpers.SchannelAuthenticationOIDs).Any() | effectiveekus.Length == 0;
props.Add("schannelauthenticationenabled", schannelAuthenticationEnabled);

return props;
}

Expand Down

0 comments on commit d7feb12

Please sign in to comment.