Skip to main content

Duo Deployment

Purpose

This solution is designed to configure the automatic deployment of the Duo Auth application on Windows and Macintosh machines that are missing the agent, using the NinjaOne platform.

References:

Associated Content

Custom Field

ContentDefinition ScopeRequiredTypeAvailable OptionsApplicable OSFunction
cPVAL DUO DeploymentOrganizationTrueDrop-downAll, Windows, Windows Workstations, Windows Servers, Macintosh, DisabledWindows, MacintoshEnables Duo auto-deployment for the selected platform.
cPVAL DUO Deployment ExcludeLocation, DeviceFalseDrop-downYes, NoWindows, MacintoshExcludes the device or location from Duo deployment automation when set to 'Yes'.
cPVAL DUO IKEYOrganizationTrueTextWindows, MacintoshLinks authentication requests to the correct Duo account using the integration key from the Duo Admin Panel.
cPVAL DUO SKEYOrganizationTrueTextWindows, MacintoshSecures communication with Duo’s service using the secret key from the Duo Admin Panel.
cPVAL DUO HKEYOrganizationTrueTextWindows, MacintoshSpecifies the API hostname for communication with Duo’s service, obtained from the Duo Admin Panel.
cPVAL DUO AUTOPUSHOrganizationFalseDrop-downAll, Windows, Windows Workstations, Windows Servers, Macintosh, DisabledWindows, MacintoshAutomatically sends a push request to the user’s device during login when enabled.
cPVAL DUO FAILOPENOrganizationFalseDrop-downAll, Windows, Windows Workstations, Windows Servers, Macintosh, DisabledWindows, MacintoshDetermines login behavior when Duo’s service is unreachable: allows login (fail open) or denies access (fail closed).
cPVAL DUO SMARTCARDOrganizationFalseDrop-downAll, Windows, Windows Workstations, Windows Servers, Macintosh, DisabledWindows, MacintoshEnables smart card login as an alternative to Duo authentication when enabled.
cPVAL DUO ENABLEOFFLINEOrganizationFalseDrop-downWindows, Windows Workstations, Windows Servers, DisabledWindowsControls whether offline access is permitted, allowing authentication without a real-time connection to Duo.
cPVAL DUO RDPONLYOrganizationFalseDrop-downWindows, Windows Workstations, Windows Servers, DisabledWindowsRequires Duo authentication only for remote logins via RDP when enabled.
cPVAL DUO WRAPSMARTCARDOrganizationFalseDrop-downWindows, Windows Workstations, Windows Servers, DisabledWindowsRequires Duo authentication after smart card primary login when enabled.
cPVAL DUO USERNAMEFORMATOrganizationFalseDrop-down0,1,2WindowsSpecifies the username format sent to Duo: sAMAccountName, NTLM domain\username, or userPrincipalName.
cPVAL DUO UAC_PROTECTMODEOrganizationFalseDrop-down0,1,2WindowsConfigures Duo authentication for logon and User Account Control (UAC) elevation.
cPVAL DUO UAC_OFFLINEOrganizationFalseDrop-down0,1WindowsEnables or disables offline access for UAC elevation.
cPVAL DUO UAC_OFFLINE_ENROLLOrganizationFalseDrop-down0,1WindowsEnables or disables offline enrollment during UAC elevation.

Automation

ContentFunction
Duo Deployment - WindowsInstalls Duo Authentication for Windows Logon x64 on Windows machines, retrieving required keys from custom fields if not provided at runtime.
Duo Deployment - MacintoshInstalls the Duo Authentication for macOS on Macintosh machines, retrieving required keys from custom fields.

Compound Conditions

ContentFunction
Duo Deployment - Windows WorkstationsTriggers the Duo Deployment - Windows automation on Windows workstations where deployment is enabled and Duo Authentication for Windows Logon x64 is not installed.
Duo Deployment - Windows ServersTriggers the Duo Deployment - Windows automation on Windows servers where deployment is enabled and Duo Authentication for Windows Logon x64 is not installed.
Duo Deployment - MacintoshTriggers the Duo Deployment - Macintosh automation on Macintosh machines where deployment is enabled and Duo Authentication for macOS is not installed.

Implementation

Step 1

Create the following custom fields:

Step 2

Create the following automations:

Step 3

Create the Duo Deployment - Windows Workstations compound condition for default Windows Workstation [Default] agent policy.
DefaultWindowsWorkstation

Step 4

Create the Duo Deployment - Windows Servers compound condition for default Windows Server [Default] agent policy.
DefaultWindowsServer

Step 5

Create the Duo Deployment - Macintosh compound condition for both default agent policies: Mac Server [Default] and Mac [Default]. The example in the document illustrates the deployment process for the Mac [Default] agent policy. It is also recommended to apply this compound condition to the Mac Server [Default] agent policy, following the same process. Image2

FAQ

1. Can the automations be executed manually without relying on the auto-deployment custom fields (cPVAL DUO Deployment, cPVAL DUO Deployment - Exclude) ?

Yes, the automations can be executed manually, independent of the auto-deployment custom fields. Even if deployment is not enabled or the machine is excluded, the scripts can still be run manually to perform the required actions.

2. Are the [cPVAL DUO IKEY], [cPVAL DUO SKEY], and [cPVAL DUO HKEY] custom fields mandatory for deployment?

Yes, these custom fields are mandatory for the deployment to function correctly. They are used to link the Duo authentication requests to the appropriate Duo account and ensure secure communication with Duo’s service.

3. What should I do if the auto-deployment is not working for certain machines?

If auto-deployment is not working, check if the machines are excluded using the cPVAL DUO Deployment Exclude custom field or if they are using a different agent policy. Ensure the compound conditions are applied to the correct agent policies for deployment to work.

4. Can the deployment process be customized for specific platforms?

Yes, the deployment process can be customized by selecting the appropriate options in the cPVAL DUO Deployment custom field. This allows you to enable deployment for specific platforms such as Windows workstations, Windows servers, or Macintosh machines.

5. What happens if Duo’s service is unreachable during login?

The cPVAL DUO FAILOPEN custom field determines the login behavior when Duo’s service is unavailable. If it is enabled, login is permitted; otherwise, access is denied.