Azure Active Directory PAM Module
This PAM module aims to provide Azure Active Directory authentication for Linux.
./bootstrap.sh
./configure --with-pam-dir=/lib/x86_64-linux-gnu/security/
make
sudo make install
Edit /etc/pam.d/{{service}}
and add the following line:
auth required pam_aad.so
Create the file /etc/pam_aad.conf
and fill it with:
{
"client": {
"id": "{{client_id}}"
},
"domain": "{{domain}}",
"group": {
"id": "{{group_id}}"
},
"smtp_server": "{{smtp_server}}",
"tenant": {
"name": "{{organization}}.onmicrosoft.com",
"address": "{{organization_email_address}}"
}
}