@model Disco.Web.Areas.Config.Models.Enrolment.IndexModel @{ Authorization.Require(Claims.Config.Enrolment.Show); var canConfig = Authorization.Has(Claims.Config.Enrolment.Configure); var canShowStatus = Authorization.Has(Claims.Config.Enrolment.ShowStatus); ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Enrollment"); }
Pending Timeout: @if (canConfig) { @Html.TextBoxFor(model => model.PendingTimeoutMinutes, new { type = "number", min = "1" }) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() minutes (default: 30) } else { @TimeSpan.FromMinutes(Model.PendingTimeoutMinutes) }
If a device enrollment is not automatically approved it will remain pending until the timeout is reached. Pending enrollments can be approved manually from the Enrollment Status page.

Apple Mac Secure Enroll

Username: @if (canConfig) { @Html.TextBoxFor(model => model.MacSshUsername) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() } else { if (string.IsNullOrEmpty(Model.MacSshUsername)) { <None Specified> } else { @Model.MacSshUsername } }
Password: @if (canConfig) { @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() } else { ******** }
Instructions: The above credentials must be able to connect to the requesting Apple Mac client via SSH. Enter/Script the following command: This url will return a JSON response containing basic information about the enrollment.
This command makes use of cURL (bundled with OSX). Other methods can also trigger a Mac Secure Enroll, such as an anchor (<a>) or <script> tag embedded on the organisation's intranet.
@if (canShowStatus && Authorization.Has(Claims.Config.Logging.Show)) {

Live Enrollment Logging

@Html.Partial(MVC.Config.Shared.Views.LogEvents, new Disco.Web.Areas.Config.Models.Shared.LogEventsModel() { IsLive = true, TakeFilter = 100, StartFilter = DateTime.Today.AddDays(-1), ModuleFilter = Disco.Services.Devices.Enrolment.EnrolmentLog.Current, ViewPortHeight = 250 }) }
@if (Authorization.Has(Claims.Config.Enrolment.DownloadBootstrapper)) { @Html.ActionLinkButton("Download Bootstrapper", MVC.Services.Client.Bootstrapper()) } @if (canShowStatus) { @Html.ActionLinkButton("Enrollment Status", MVC.Config.Enrolment.Status()) }