Docs / Start here / For Linux administrators

PDF436 KB

GPWarden for Linux administrators

On this page

GPWarden makes a RHEL 9 or 10 workstation a Group Policy client of Active Directory. The Windows team writes the policy in GPMC; on the workstation one service, gpwardend, applies it with RHEL's own tools (dconf, NetworkManager, CUPS, systemd, dnf, PAM, chrony, SSSD's identities). This guide is for whoever installs and runs it.

Components

PieceWhat it is
gpwardend (/usr/libexec/gpwardend, gpwardend.service)The service. Runs as root in its own SELinux domain (gpwardend_t), authenticates to AD with the host keytab, refreshes every 90 ± 30 minutes and on demand.
gpwardenctlThe command line: update (gpupdate), result (gpresult), software, license, recovery. Any user may run update and result for themselves.
pam_gpwarden.soPAM postlogin hook: tells gpwardend about sign-ins and sign-outs. Optional and always returns success: it cannot block a logon.
gpwarden-authselectAdds the PAM hook through an authselect profile (custom/gpwarden).
gpwarden-selinuxThe SELinux policy module (installed automatically with SELinux targeted policy).
gpwarden-desktopInstall a Program from the Network (GTK 4), optional.
gpwarden-admxThe administrative templates for the Windows team's Central Store.

Install

Join the domain

GPWarden uses the identity that realm / adcli give the machine (the host keytab, /etc/krb5.keytab); it does not join by itself.

Shell
dnf install sssd-ad sssd-kcm adcli krb5-workstation oddjob-mkhomedir
realm join --membership-software=adcli --computer-ou="OU=Linux,OU=Workstations,DC=example,DC=com" example.com

Choose ad_gpo_access_control in /etc/sssd/sssd.conf (enforcing applies Windows logon rights such as Allow log on locally; permissive only logs them). That is SSSD's feature, independent of GPWarden.

With SSSD's default home directories (/home/<domain>/<user>), give that tree the SELinux labels of /home once, so user certificates and keyrings are labeled correctly:

Shell
semanage fcontext -a -e /home /home/example.com && restorecon -R /home/example.com

From the subscription repository

Shell
gpwardenctl license set license.key   # the key in a file, or - for stdin; or: the Windows team sets it by GPO
dnf install gpwarden gpwarden-desktop           # gpwarden-desktop only on GNOME desktops
gpwarden-authselect enable
systemctl enable --now gpwardend
gpwardenctl update && gpwardenctl result

The repository file checks every package against the GPWarden release key (fingerprint 243B 7030 A727 5950 90E1 9BEC 3F29 63BB AB79 16A7). Updates come with your normal dnf upgrade cadence. The license key is checked locally, offline; the computer never reports to GPWarden.

From release files

Verify the downloads, then install them with dnf:

Shell
rpm --import RPM-GPG-KEY-gpwarden
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum -c SHA256SUMS
rpm -K gpwarden-*.rpm
dnf install ./gpwarden-*.rpm

Images and automation

For kickstart, image builds or Ansible: install the packages, run gpwarden-authselect enable and enable the service. Policy is applied at the first boot after the join. Nothing machine-specific is created at install time.

FIPS mode

GPWarden runs in FIPS mode with RHEL's AD subpolicy, which allows the AES-SHA1 Kerberos types Active Directory uses:

Shell
fips-mode-setup --enable && update-crypto-policies --set FIPS:AD-SUPPORT && reboot   # RHEL 9
update-crypto-policies --set FIPS:AD-SUPPORT                                         # RHEL 10, installed with fips=1

Two things to tell the Windows team: encrypted LAPS needs an ECDH KDS root key (DEPLOYMENT.md), and PEAP-MSCHAPv2 Wi-Fi cannot work in FIPS mode (EAP-TLS does). FIPS mode also refuses Ed25519 SSH keys.

SELinux

GPWarden runs confined in gpwardend_t, enforcing mode. What the domain may change is what Group Policy manages: its own files, dconf, NetworkManager connections, CUPS queues, systemd units (enable, mask, start, stop any service, as Windows' Services preference can), files under /etc with etc_t (Ini Files preference), PAM configuration through authselect, chrony sources, LUKS keyslots. Scripts from GPOs and scheduled tasks run as separate systemd units, unconfined, as Windows runs them with full rights.

Shell
ausearch -m avc -c gpwardend          # denials
rpm -q gpwarden-selinux               # the module must be installed
restorecon -R /var/lib/gpwarden /run/gpwarden

What GPWarden owns on the system

Do not manage these files with Ansible, Puppet or by hand: GPWarden rewrites them at every refresh, and removes them when the policy that made them goes away. Everything else it leaves alone (/etc/sudoers, /etc/chrony.conf, other repository files, users' own settings).

AreaFiles and objects
State, cache, RSoP/var/lib/gpwarden/ (machine Kerberos ticket cache, LAPS state without passwords, GPO cache, rsop.json, per-user results in users/), /run/gpwarden/ (control socket)
GNOME settings/etc/dconf/db/gpwarden.d/, its locks/, and the dconf profiles GPWarden sets for users at sign-in
Logon banner/etc/issue.d/gpwarden.issue and the GDM banner keys in dconf
Removable storage/etc/udev/rules.d/80-gpwarden-removable-storage.rules
Local administrators/etc/sudoers.d/50-gpwarden-administrators, /etc/polkit-1/rules.d/49-gpwarden-administrators.rules
Password and lockout policy/etc/security/pwquality.conf.d/50-gpwarden.conf, a marked block in /etc/security/faillock.conf and pwhistory.conf, /etc/login.defs ages
Packages and updates/etc/yum.repos.d/gpwarden.repo, /etc/yum.repos.d/gpwarden-subscription.repo, /etc/dnf/vars/gpwarden_license, /etc/dnf/gpwarden-automatic.conf, gpwarden-updates.timer / .service
Time/etc/chrony.d/gpwarden.sources
Certificates/etc/pki/ca-trust/source/anchors/gpwarden-ad-*.pem (AD root CAs), /etc/pki/gpwarden/ (computer certificates; keys in private/, root only), users' ~/.cert/gpwarden/ and ~/.pki/nssdb entries
802.1XNetworkManager's 802.1X settings on ethernet connections, the Wi-Fi connections the policy names (system-wide and per user), /etc/pki/gpwarden/802.1x/
Browsers/etc/firefox/policies/policies.json (only the Authentication entry if the file was yours), /etc/opt/chrome, /etc/opt/edge, /etc/chromium policies/{managed,recommended}/gpwarden.json
PrintersCUPS queues created from policy
Computer preferences/etc/environment.d/60-gpwarden.conf, /etc/gpwarden/environment.sh, gpwarden-task-* units, <service>.d/90-gpwarden-recovery.conf drop-ins, the ini properties a GPO names
User preferencesIn each home: ~/.config/environment.d/60-gpwarden.conf, ~/.config/autostart/gpwarden-session.desktop, gpwarden-* launchers in ~/.local/share/applications, bookmarks for mapped drives, ~/.cups/lpoptions
Disk encryptionA LUKS keyslot with the recovery password and its gpwarden-recovery token
Startup wait/etc/systemd/system/systemd-user-sessions.service.d/50-gpwarden-wait-for-policy.conf (only with Always wait for the network)

Day-to-day

Shell
gpwardenctl update [--force] [--target computer|user]   # gpupdate
gpwardenctl result [-v] [--user NAME] [--html FILE]      # gpresult
journalctl -u gpwardend                                  # what happened, with Windows event IDs
systemctl list-timers 'gpwarden-task-*'                  # scheduled tasks from Group Policy
gpwardenctl recovery rotate                              # new disk recovery password (after giving one out)

A failed refresh never changes anything: the last applied settings stay in force, and gpwardend retries as soon as the network changes (with a back-off up to 30 minutes as a safety net). Boot and sign-in do not wait for it unless the policy Always wait for the network at computer startup and logon is on.

Events have stable journald MESSAGE_IDs and carry the Windows event number in GPWARDEN_WINDOWS_EVENT_ID, so a SIEM rule written for Windows Group Policy maps directly (EVENTS.md). Forward them as any RHEL log (rsyslog imjournal, systemd-journal-remote, the SIEM agent).

Troubleshooting

SymptomCheck
"no domain controller reachable" (event 1055)DNS: host -t SRV _ldap._tcp.dc._msdcs.example.com; ports 53, 88, 389, 445, 135 + dynamic RPC to the DCs; adcli info example.com
Kerberos errors, clock skewchronyc tracking; klist -k /etc/krb5.keytab
A GPO missing from gpwardenctl resultThe output lists filtered GPOs with the reason (Denied (Security), Denied (WMI Filter), Disabled). Compare with Group Policy Modeling in GPMC.
A setting not appliedgpwardenctl result -v shows each setting and its winning GPO; journalctl -u gpwardend shows the manager's warning
User settings missingThe user needs a Kerberos ticket (SSSD with KCM). gpwardenctl result as that user; journalctl -u gpwardend -g "user policy"
LAPS failsjournalctl -u gpwardend -g LAPS: no KDS root key, missing Set-LapsADComputerSelfPermission, the managed account does not exist
SELinux denialsausearch -m avc -c gpwardend; the gpwarden-selinux package installed
Certificates for users labeled user_home_tthe semanage fcontext -e step above

Stopping or removing GPWarden

systemctl disable --now gpwardend stops policy processing; settings already applied stay, as on a Windows computer that can no longer reach a DC. To return a workstation to an unmanaged state, have the Windows team unlink the GPOs (or filter the computer out), run gpwardenctl update so GPWarden removes what it set, then gpwarden-authselect disable and dnf remove gpwarden\*. Settings Windows also keeps after a GPO goes away (preference items without Remove this item when it is no longer applied, the disk recovery keyslot) stay, by design.

Questions about this page? Ask in the chat or write to support@gpwarden.com.