How to restrict lookup and access of LDAP users on RHEL system (authenticating via SSSD) based on netgroup using 'compat' mode

Solution Verified - Updated -

Issue

  • How to restrict LDAP user to access machine based on netgroup and filter out other LDAP users from showing info in id command using compat mode in nsswitch.
  • How to restrict lookup and access of LDAP users on RHEL system (authenticating via SSSD) based on netgroup using 'compat' mode

Environment

  • Red Hat Enterprise Linux 8.5
  • SSSD (Configured in id_provider = ldap mode)
  • NIS Netgroups

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content