Docs / Scenarios / Upgrades and troubleshooting

PDF302 KB

Upgrades and troubleshooting

On this page

Goal: keep GPWarden current on every workstation, and find out quickly why a setting did not arrive.

Upgrading GPWarden

GPWarden updates come from the GPWarden subscription repository, signed with the GPWarden release key, like any other RHEL update:

  • Automatically: with Microsoft's Windows Components > Windows Update > Configure Automatic Updates option 4 (install at the scheduled day and hour), GPWarden updates install with the rest. (With GPWarden > Software > Install only security updates, automatic updates are limited to security updates; upgrade GPWarden by hand then.)
  • By hand or with your tools: dnf upgrade gpwarden\*.

The service restarts itself after the upgrade; settings stay applied throughout. Read the release notes first: they say what a release fixes, whether to upgrade soon, and whether new templates come with it (copy the new GPWarden.admx / .adml into the Central Store; older templates keep working, they just lack the new settings).

Check afterwards:

Shell
rpm -q gpwarden                       # the new version
systemctl is-active gpwardend         # active
gpwardenctl update && gpwardenctl result

Troubleshooting

Start where Windows admins start: Group Policy Modeling in GPMC. GPWarden follows the same rules, so if Modeling does not show a GPO for the computer, the workstation will not apply it either. Then, on the workstation:

Shell
gpwardenctl result -v                 # GPOs, why each was applied or denied, every setting and its GPO
journalctl -u gpwardend -b            # what happened since boot
journalctl -u gpwardend GPWARDEN_WINDOWS_EVENT_ID=1055   # refreshes that could not reach a DC

Common causes

SymptomLikely causeCheck and fix
Event 1055, "no domain controller reachable"DNS or firewallhost -t SRV _ldap._tcp.dc._msdcs.example.com; ports 53, 88, 389, 445, 135 and dynamic RPC to the DCs; adcli info example.com
Kerberos errors, "clock skew"Timechronyc tracking; the clock must be within 5 minutes of the DCs. GPWarden syncs from the DCs unless a policy says otherwise; the PDC emulator must itself sync from reliable NTP
Errors about the host keytabThe computer account was reset or deleted in ADklist -k /etc/krb5.keytab; re-join the computer
A GPO shows Denied (Security)Security filteringThe computer (or user) needs Read and Apply group policy; group changes apply at the next refresh, no reboot
A GPO shows Denied (WMI Filter)The WMI filterRHEL reports OSType = 36 and Version = linux-<version>; a filter for Windows (OSType = 18) never matches
A setting listed but "not applied"No meaning on RHELThe reason is in gpwardenctl result -v and in RATIONALE.md
A user's group change or new admin right not seenSSSD's cacheNew rights take effect at the user's next sign-in, as on Windows; sss_cache -u NAME makes SSSD read the user again
A new sudo rule from AD not seenSSSD's sudo refresh (15 minutes)sudo -l as the user; systemctl restart sssd fetches it at once
User settings missingNo Kerberos ticket for the userklist as the user; journalctl -u gpwardend -g "user policy"
Denials with SELinux enforcingLabels or the policy moduleausearch -m avc -c gpwardend; rpm -q gpwarden-selinux; restorecon -R /var/lib/gpwarden /run/gpwarden
User certificates or keyrings labeled user_home_tSSSD's default home pathsemanage fcontext -a -e /home /home/<domain> && restorecon -R /home/<domain>
LAPS does not rotateAD sideNo KDS root key (or a finite-field one in FIPS mode), Set-LapsADComputerSelfPermission missing on the OU, the managed account missing on the computer: journalctl -u gpwardend -g LAPS

What to send to support

Shell
gpwardenctl result --html report.html              # computer settings (as root)
gpwardenctl result --html user.html --user NAME    # a user's settings
journalctl -u gpwardend -b > gpwardend.log
rpm -q gpwarden gpwarden-selinux sssd

The HTML report contains GPO names and setting values (no passwords: LAPS and recovery passwords are never stored on the workstation). Look through it before sending it outside your organization.

Monitoring

Forward the journal to your SIEM with rsyslog imjournal, systemd-journal-remote or the SIEM's agent. The events carry the same numbers as on Windows, so alert rules written for Windows Group Policy apply: 1055 (DC unreachable), 1502 / 1500 (policy applied), 4732 / 4733 (administrators changed), 10018 (LAPS rotated). The full list is in EVENTS.md.

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