Skip to content

Commit

Permalink
CP-53362: Rename hcp_nss to nss_override_id (#6311)
Browse files Browse the repository at this point in the history
hcp_nss is a nss module to override the uid/gid of pooladmin when they
ssh into dom0, as dom0 only support one single user

However, the name wants to be updated to nss_override_id to reflect its
usage
  • Loading branch information
liulinC authored Feb 24, 2025
2 parents df42cde + 3c53bdc commit 45b0b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python3/plugins/extauth-hook-AD.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __init__(self, session, args, ad_enabled=True):
"/etc/nsswitch.conf", session, args, ad_enabled)
modules = "files sss"
if ad_enabled:
modules = "files hcp winbind"
modules = "files override_id winbind"
self._update_key_value("passwd", modules)
self._update_key_value("group", modules)
self._update_key_value("shadow", modules)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_ad_not_enabled(self, mock_install):
self.assertTrue(line_exists_in_config(nss._lines, expected_config))

def test_ad_enabled(self, mock_install):
expected_config = "passwd: files hcp winbind"
expected_config = "passwd: files override_id winbind"
nss = NssConfig(mock_session, args_bd_winbind, True)
nss.apply()
self.assertTrue(line_exists_in_config(nss._lines, expected_config))
Expand Down

0 comments on commit 45b0b21

Please # to comment.