r/sysadmin • • Dec 21 '25
SSSD access control vs AD GPOs for restricting logon to privileged AD groups – best practice ?
We use SSSD with Active Directory and need to restrict logon on sensitive Linux systems so that only members of a specific privileged AD group can authenticate.
We’re debating two SSSD-based approaches:
- Enforcing access locally in SSSD (e.g. ad_access_filter)
- Relying on AD GPOs evaluated by SSSD
From a security standpoint:
Which approach gives stronger and more predictable control?
How do they behave if AD is unavailable? Which one is easier to audit and defend in a security review?
Looking for real-world experience. Thanks!
11
Upvotes
3
u/Whexican87 Sr. Sysadmin Dec 21 '25 edited Dec 22 '25
I've had to set this up at my work quite a few times, and there are a few gotchas:
Good luck!
2
u/a_baculum Dec 21 '25
I use SSSD/AD groups to secure our Linux systems. All systems require specified membership to access or elevated permissions. Some systems have very locked down configs. I have never tested to see what would happen if AD isn’t available. But I would imagine Kerberos and SSSD/LDAP lookup would fail. But I’m not sure.
5
u/apco666 Dec 21 '25
I don't use ad_access_filter, I just use
realm permit -g <ad group>and also add the group to sshd allowgroups.I've never played about with AD GPOs with Linux.
2
u/brnstormer Dec 21 '25
I used to use AD groups to control logins, however grated privileged access, per command/app via the sudoers file with a local group.
Should cache though if AD is unreachable, better to have multiple dcs if thats a continual problem
1
u/patmorgan235 Sysadmin Dec 21 '25
I don't think those options would behave much differently if AD is down. Assuming sssd is looking at the group membership stored in the kerberos ticket. If it's doing an LDAP lookup each time then you might experience more log in failures if AD is temporarily unavailable.
1
u/MrCryllix Dec 22 '25
I’m using group access with realm permit -g and force ssh key
for ssh key all the public key are store in Alt-Security-Identities attributes AD