diff --git a/ConfigurationHandler/ADCompareConfigurationHandler.cs b/ConfigurationHandler/ADCompareConfigurationHandler.cs new file mode 100644 index 0000000..70a5b46 --- /dev/null +++ b/ConfigurationHandler/ADCompareConfigurationHandler.cs @@ -0,0 +1,50 @@ +using Disco.Data.Repository; +using Disco.Services.Plugins; +using System.Web.Mvc; +using System.Web.WebPages; + +namespace Disco.Plugins.ADCompare.ConfigurationHandler +{ + public class ADCompareConfigurationHandler : PluginConfigurationHandler + { + public override PluginConfigurationHandlerGetResponse Get(DiscoDataContext Database, Controller controller) + { + return Response(); + } + + public override bool Post(DiscoDataContext Database, FormCollection form, Controller controller) + { + // No configuration to save + return true; + } + } + + public class ConfigurationView : WebViewPage + { + public override void Execute() + { + WriteLiteral(@" +
+

AD Compare Plugin

+

This plugin compares the Managed By field on Active Directory computer objects + against the Assigned User in Disco ICT, and reports mismatches.

+
+

How It Works

+ +
+

No configuration is required.

+

+ + Open Comparison Dashboard + +

+
"); + } + } +}