Closed noelmcloughlin closed 6 years ago
The main objective is to dynamically lookup group because states fail with AD users.
{%- set group = salt['cmd.run']('id -gn', runas=user, output_loglevel='quiet',) or None %}
Selfie-merge per community guidelines as PR is stuck a few weeks.
Get
group
from eitherpillar
or GNU coreutilsid -gn
command.Fixes failed states when users exist in LDAP and AD. Verified successfully on Ubuntu 16 with active directory users.