8000 GitHub - neverrend/pam_aad: Azure Active Directory PAM Module
[go: up one dir, main page]

Skip to content

neverrend/pam_aad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pam_aad Build Status GPL-3.0-or-later

Azure Active Directory PAM Module

This PAM module aims to provide Azure Active Directory login to Linux over SSH.

Installation

./bootstrap.sh
./configure --with-pam-dir=/lib/x86_64-linux-gnu/security/
make
sudo make install

Configuration

Edit /etc/pam.d/sshd with your favorite text editor and add the following line at the top:

auth required pam_aad.so

Configuration File

Create the file /etc/pam.conf and fill it with:

{ 
  "client": {
      "id": "<client_id_here">
   },
   "domain": "<@mycompany.com>",
   "tenant": "<mycompany.onmicrosoft.com>"
}

Module options

client_id

This is the id of your application. Once you have create an application through https://portal.azure.com. When you create your app through your Azure portal you will recieve a code in the form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

tenant

Your organization. [xxxxxx].onmicrosoft.com, where [xxxxxx] is replaced by your 0365 organization name.

required_group_id

Checks if the user authenticating to the application is part of the group specified. This allows you to restrict access to certain machines to specific members of your organization.

Current behavior

ssh me@host
Enter the following code at https://aka.ms/devicelogin : B8EYXPJQF
Please hit enter to begin polling...

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

About

Azure Active Directory PAM Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 84.9%
  • M4 7.2%
  • Dockerfile 5.0%
  • Makefile 2.8%
  • Shell 0.1%
0