Skip to content

Commit

Permalink
feat: schannelauthenticationenabled property
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK committed Sep 2, 2024
1 parent 3f8f147 commit a8c37b7
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 @@ -553,6 +553,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 a8c37b7

Please sign in to comment.