module

Pared::SSSD

Constants

BUS_DEST = "org.freedesktop.sssd.infopipe"
BUS_IFACE = "org.freedesktop.sssd.infopipe"
BUS_PATH = "/org/freedesktop/sssd/infopipe"
GROUP_ROLES = {"sysadmins" => "SuperAdmin", "wheel" => "SuperAdmin", "netadmins" => "NetAdmin", "auditors" => "Auditor"}

Directory groups that grant a role. Absence of any mapped group means the directory has no opinion, so an explicit role assigned in Pared stands instead of being reset to the Monitor default on every login.

Instance methods

clear_mock_groups
Source
get_user_groups(username : String) : Array(String)

Query SSSD InfoPipe for supplemental groups matching target username

Source
role_for(username : String) : String | Nil

Returns nil when no directory group maps to a role or the lookup fails, leaving the stored assignment untouched.

Source
role_for_groups(groups : Array(String)) : String | Nil
Source
set_mock_groups(username : String, groups : Array(String))
Source

Nested types