Active Directory
With a site connector installed, Entrosity Axis can mirror the computer objects of an Active Directory domain and push the agent to them. Everything here needs the tenant admin role.
Create a sync configuration
Under Settings → Active Directory, choose New configuration:
| Field | Meaning |
|---|---|
| Name | A label, e.g. the domain name. |
| Connector | The site connector that talks to this domain. |
| Site for new devices | The site computers found by this sync are put in. |
| Domain controller | DNS name of a DC (e.g. dc1.corp.example.com). Use the name, not an IP address, so the certificate matches. |
| Port | 636 for LDAPS, 389 for StartTLS or plain LDAP. |
| Encryption | LDAPS or StartTLS (recommended); plain LDAP only in labs. |
| CA certificate (optional) | PEM of the CA that issued the DC certificate, when the connector server does not trust it. |
| Skip certificate verification | For tests only. |
| Bind account | A read-only domain account (UPN or DN) and its password. The password is stored encrypted and only sent to the connector when a job runs. |
| Base DN | e.g. DC=corp,DC=example,DC=com. |
| OUs | Pick OUs to include or exclude from the tree (loaded live from the DC). |
| Extra LDAP filter (optional) | ANDed with (objectCategory=computer), e.g. (operatingSystem=Windows*). |
| Sync interval | 5 minutes to 7 days; default 60 minutes. |
| Push account (optional) | A domain account that is local administrator on the PCs; needed for agent push. |
| Auto-push | Push the agent to newly discovered, enabled computers after each sync. |
Changing the domain controller or bind account
The stored bind password is used only for the server and account it was saved for. When you change the Domain controller, Port, Encryption, Skip certificate verification, CA certificate or the Bind account of a saved configuration, its page asks for the password again: Test connection and Save changes stay refused (Enter the password) until you type it. Other changes (name, OUs, filter, schedule, push account) keep the stored password.
Test and sync
- Test connection asks the connector to connect and bind, and shows the result: the number of computers found and the DC's naming context, or an error code.
- Sync now starts a run immediately. Only one run per configuration
can be active (
run_in_progress).
Each configuration shows its run history: trigger (manual or scheduled), status, and the counts of computers seen, created, updated, matched and gone.
Scheduling and failures
The server owns the schedule. After a failed run the next attempt is delayed exponentially (interval × 2^failures, at most 24 hours), and the AD sync failing alert opens.
AD computers
The computers the syncs found are listed on Devices, with everyone else: a computer without the agent has source AD, one that runs it Both. There is no separate AD computers page any more; its old links open Devices with the same filters. Devices shows each computer's OU, whether its account is enabled, whether it is still in AD, its push status and, under Columns, its last logon.
Agent coverage and why pushes failed
The top of Devices answers "which computers have the agent, and why do the others not?" for the selected OU (and every OU below it), or for all computers:
-
N of M computers run the agent, with a progress bar.
-
Five figures, each of which filters the list when clicked (click it again to clear the filter):
- With agent;
- Without agent;
- Being pushed (queued or in progress);
- Push failed;
- Never pushed.
The push figures count computers that are still in AD and still have no agent.
-
Why pushes failed (shown after you click Push failed) lists the error codes of the failed pushes with how many computers each has, what it means and what to do. Click one to list those computers.
In the list:
-
Source is Both when the agent runs, AD when it does not.
-
Agent push shows only what needs a look; a successful push leaves the cell empty:
- Not pushed;
- a push that is waiting or running; hover it to see when it happened;
- a failure with its cause (Failed · access denied); hover it for the full error message and the fix.
When pushes failed, the column header counts them (Agent push · 22 failed); click it to list only those computers.
The counts refresh by themselves while pushes run.
Browse by organizational unit
The OU tree beside the list is the one on Devices. It shows the domain, its OUs and containers with their computer counts. Selecting an OU filters the list and the figures to that OU and everything below it.
Other filters, under Filters on Devices:
- Source (AD for computers without the agent, Both for those with it);
- AD computer account (enabled or disabled);
- In Active Directory (still in AD or gone);
- Agent push (never pushed, being pushed, failed, succeeded);
- AD domain, for tenant admins when there are several.
How AD computers and agents are matched
When a computer is synced or an agent enrolls, the server looks for an existing device in this order:
- machine SID = AD
objectSid; - FQDN = AD
dNSHostName(case-insensitive); - hostname = AD
nameand the same domain.
A match makes one device with source both. Otherwise a new device is created: AD-only devices have status never connected. If a match is missed, merge the two records.
Computers that disappear from AD
Axis lists what AD has. On every successful sync:
- A computer that is no longer found (deleted in AD, or moved out of the
synced OUs) is marked gone.
- An AD-only device (no agent) is removed from Axis.
- A device with the agent stays, and the agent keeps working: the device only loses its AD link (source agent again, no OU or AD status). When the computer appears in AD again, also as a new AD object (for example after it was rejoined to the domain, which can take hours to show), it is matched to the same device by FQDN or hostname + domain. To remove such a device, decommission it yourself.
- A computer in AD without a device in Axis is listed as an AD-only device, also when someone deleted its device in Axis before. A removed computer that comes back to AD returns the same way.
A sync that finds no computer at all removes and unlinks nothing: that points to a wrong base DN or OU scope, not an empty domain.
Push the agent
- Set the push account on the configuration.
- On Devices, select computers (or filter, e.g. by OU or Without agent) and choose Push agent in the bulk actions. It counts the selected computers that are in AD without the agent; the others are left out. Only tenant admins see it. A single computer can also be pushed from its own page: Commands leads with Push agent (or Push the agent again, after the reason the last push failed).
- A progress panel and each row's Agent push show the push status as
it moves through queued, connecting, copying and installing, and
ends as success or an error code such as
winrm_disabledoraccess_denied.
Each computer is pushed as its own job with its own single-use
enrollment token (valid 24 hours, push: <computer> under Agent
enrollment). The connector pushes to 2 computers at a time, with a
10-minute timeout per computer.
How a push works:
- Resolve the name and connect over SMB (port 445) with the push
account, the way PsExec or PDQ Deploy do. If the
RMMAgentservice already exists, the agent is installed but Axis has no working agent for the computer: its device was decommissioned (which revokes the agent) or it was installed without a token. The connector then enrolls that agent again with the push token instead of installing it; a stopped (revoked) agent is enrolled anew and started. The result is success (reenrolled), orreenroll_failedwith the reason. An agent that cannot prove its old key waits for approval under Re-enrollment requests; approve it while the push runs (the connector watches for 3 minutes, then showsreenroll_failed). A running agent that is already enrolled is left alone (success,already_installed). - Copy the agent MSI into a new folder under
\\host\ADMIN$\Tempthat only SYSTEM and Administrators can open, and startmsiexecthrough a temporary service, with the computer's push token and the server URL. The token is kept in that folder only, not in the service's command line (which Windows records in the System log), and the folder is deleted afterwards. The connector follows the installer log, so a failed install shows its exit code and log lines within seconds. - When port 445 is closed or the
ADMIN$share is not usable, the connector uses WinRM instead (HTTPS 5986; HTTP 5985 only with Allow WinRM over HTTP): it copies the MSI in chunks, checks its checksum and runsmsiexec. Over HTTPS the computer's certificate must be trusted by the connector server and issued for the computer's name (WinRM over HTTPS).
The MSI is the newest published stable agent release. The push account's
credentials go only to a computer's DNS name in the configuration's
domain (from its dNSHostName in Active Directory): a computer without
one fails with invalid_target, and the connector never pushes to a short
name or an IP address, which someone else on the network could answer.
A failed row shows the connector's message, which names the channel (SMB or WinRM) and the step that failed, and a suggested fix below it.
Make the push account a local administrator with a GPO (Restricted Groups), and allow File and Printer Sharing (TCP 445) from the connector server in the domain firewall profile. WinRM (Allow remote server management through WinRM, plus the firewall rule, and a trusted HTTPS certificate) is only needed where SMB is blocked. The connector server must resolve the files host of this portal: if its DNS server hosts a zone for the portal's domain, add the record there.
WinRM over HTTPS
The connector checks the certificate of a computer's WinRM HTTPS listener
(port 5986) the way a browser checks a website: it must be issued by a
certification authority the connector server trusts (for example your
enterprise CA, through certificate auto-enrollment) and name the
computer. The self-signed certificate that winrm quickconfig -transport:https creates is not trusted.
With an untrusted certificate the computer fails with tls_untrusted, or
with winrm_http_disabled when it also offers HTTP 5985.
Allow WinRM over HTTP (off by default) lets the connector use HTTP 5985 with NTLM message encryption when HTTPS is not usable, as connectors did before. It is not recommended: a computer someone adds to Active Directory could then receive the push account's NTLM logon and crack or relay it.
Accept any WinRM HTTPS certificate in the configuration's agent push settings turns the certificate check off for that configuration's pushes. It is not recommended either: anyone on the network between the connector and a computer can then pose as that computer and capture the push account's password. Prefer issuing trusted certificates, or SMB. Changing either setting is recorded in the audit log.