Skip to content

Variables

A NetDefense variable is a named value that snippets reference by ${name}. Each variable has a default at the organization level and can be overridden at the template, OU, or device level — the more specific scope wins. Variables can also be marked secret, in which case their values are never displayed again once written — every read path (this page, ndcli, the API) returns a redacted placeholder instead of the value. The concept overview is in Variables.

NDWeb Variables list for ocp-detroit showing four variables with org-level value and override counts

Each row is one variable:

ColumnMeaning
NameUsed as ${name} in snippet content. Click to open the variable.
Org ValueThe organization-level default. Dashes (—) mean no org default is set — the variable only exists because something at a lower scope overrides it.
OverridesBadges showing how many devices and OUs override this variable. Click the badge to open the override sheet.

Secret variables show their org value as a masked placeholder rather than the raw string.

The filter bar above the table accepts a name regex.

The … menu on each row has Edit and Delete; open the Overrides badges to manage per-device, per-OU, or per-template overrides. The Edit dialog is also how you replace a secret’s stored value — for example, rotating a bind password after the directory-side credential changes.

A value used by a snippet that grants administrator rights has to be saved by a Superuser. To record that on an existing value, a Superuser opens Edit — on the variable or on the override that applies — and saves it as it is. A secret’s value can’t be shown, so type it in again; leaving the field empty keeps the secret but doesn’t count as a new save. See Variables that need a Superuser.

+ Create Variable in the top-right opens the form. You provide:

  • Name — must be unique in the organization.
  • Secret — toggle on to redact the value on every read path once it’s written. Secrets show as •••••• on every override sheet and detail page, and can’t be retrieved again — only replaced. Use it for passwords, API keys, and pre-shared keys referenced from snippet content — NetDefense doesn’t scan snippet content for secrets on its own.
  • Multi-line value (PEM) — for a certificate or a private key, such as one a Trust Certificate uses: Value becomes a text area that keeps line breaks and trims nothing. Pasting a value with line breaks switches to it on its own. With Secret on, the field shows only a summary such as PEM private key, 28 lines, hidden, with Reveal and Clear. A private key is refused unless Secret is on.
  • Value — the default at the organization scope. Required.
  • Confirm Value — shown only when Secret is on and the value is a single line; must match Value exactly before the form submits.
  • Description — optional, but recommended for shared organizations.

A variable’s value at sync time is decided by walking from most-specific to least-specific:

  1. Device override (set on the device’s detail page).
  2. OU override (set on the OU’s detail page).
  3. Template override (set on the template’s detail page).
  4. Organization default (set on the variable itself).

Open a variable’s override sheet from the badges in the Overrides column to see who’s overriding it at each scope, edit values, or remove an override. Removing all overrides at every scope falls back to the org default.