Skip to content

Commit 39f2133

Browse files
committed
[ActiveDirectory] Fix usage of authselect which used to cause node boostrap failures on Rocky 9.5+ when directory service is used.
1 parent 65c1b4e commit 39f2133

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
4141
- Remove usage of cfn-init for compute node bootstrapping to reduce node scale up time.
4242
- Fix the execution of overriding aws-parallelcluster-node package only on the head node during update.
4343
- Fix an issue where containerized jobs executed through Pyxis/Enroot in a multi-user environment (integrated with Active Directory) would fail.
44+
- Fix usage of authselect which used to cause node boostrap failures on Rocky 9.5+ when directory service is used.
4445

4546
3.12.0
4647
------

cookbooks/aws-parallelcluster-environment/resources/system_authentication/system_authentication_rocky8.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
user 'root'
2929
# Tell NSS, PAM to use SSSD for system authentication and identity information
3030
# authconfig is a compatibility tool, replaced by authselect
31-
command "authselect select sssd with-mkhomedir"
31+
command "authselect select sssd with-mkhomedir --force"
3232
sensitive true
3333
default_env true
3434
end

cookbooks/aws-parallelcluster-environment/spec/unit/resources/system_authentication_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def self.configure(chef_run)
6060
'authconfig --enablemkhomedir --enablesssdauth --enablesssd --updateall'
6161
when 'ubuntu'
6262
'pam-auth-update --enable mkhomedir'
63+
when 'rocky'
64+
'pam-auth-update --enable mkhomedir --force'
6365
else
6466
'authselect select sssd with-mkhomedir'
6567
end

0 commit comments

Comments
 (0)