Skip to content

Commit 45b0b21

Browse files
authored
CP-53362: Rename hcp_nss to nss_override_id (xapi-project#6311)
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
2 parents df42cde + 3c53bdc commit 45b0b21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python3/plugins/extauth-hook-AD.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def __init__(self, session, args, ad_enabled=True):
332332
"/etc/nsswitch.conf", session, args, ad_enabled)
333333
modules = "files sss"
334334
if ad_enabled:
335-
modules = "files hcp winbind"
335+
modules = "files override_id winbind"
336336
self._update_key_value("passwd", modules)
337337
self._update_key_value("group", modules)
338338
self._update_key_value("shadow", modules)

python3/plugins/test_extauth_hook_AD.py renamed to python3/tests/test_extauth_hook_AD.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def test_ad_not_enabled(self, mock_install):
201201
self.assertTrue(line_exists_in_config(nss._lines, expected_config))
202202

203203
def test_ad_enabled(self, mock_install):
204-
expected_config = "passwd: files hcp winbind"
204+
expected_config = "passwd: files override_id winbind"
205205
nss = NssConfig(mock_session, args_bd_winbind, True)
206206
nss.apply()
207207
self.assertTrue(line_exists_in_config(nss._lines, expected_config))

0 commit comments

Comments
 (0)