Skip to content

Commit

Permalink
Enable PAM mkhomedir module in e2e base images
Browse files Browse the repository at this point in the history
This is not enabled by default and is needed to auto-create home
directories for AD users logging in.
  • Loading branch information
GabrielNagy committed Oct 31, 2023
1 parent 471ae75 commit 35b6c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ cp /home/azureuser/.ssh/authorized_keys /etc/ssh/authorized_keys
chmod 644 /etc/ssh/authorized_keys # needs to be world-readable
echo "AuthorizedKeysFile /etc/ssh/authorized_keys" >> /etc/ssh/sshd_config

echo "Configure PAM to create home directories on first login..."
pam-auth-update --enable mkhomedir

echo "Updating DNS resolver to use AD DNS..."
echo "DNS=10.1.0.4" >> /etc/systemd/resolved.conf
systemctl restart systemd-resolved
Expand Down

0 comments on commit 35b6c04

Please sign in to comment.