Skip to content

Commit

Permalink
feat: schannelauthenticationenabled property (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK authored Sep 17, 2024
1 parent 6ec8dae commit dd20a7b
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 @@ -566,6 +566,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 dd20a7b

Please sign in to comment.