Skip to content

Commit

Permalink
utils: adding gssapi common configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lavu authored and pbrezina committed Feb 19, 2024
1 parent 6e92e58 commit 806c949
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sssd_test_framework/utils/sssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,20 @@ def sudo(self) -> None:
self.sssd.authselect.select("sssd", ["with-sudo"])
self.sssd.enable_responder("sudo")

def gssapi(self) -> None:
"""
Configure SSSD with gssapi.
#. Select authselect sssd profile with "with-gssapi" and "with-sudo"
#. Configure SSSD pam_gssapi_services in SSSD configuration
"""

self.sssd.authselect.select("sssd", ["with-gssapi", "with-sudo"])
self.sssd.enable_responder("sudo")

self.sssd.domain["pam_gssapi_services"] = "sudo, sudo-i"
self.sssd.domain["pam_gssapi_check_upn"] = "False"

def autofs(self) -> None:
"""
Configure SSSD with autofs.
Expand Down

0 comments on commit 806c949

Please sign in to comment.