CyberNinjas / pam_aad

Azure Active Directory PAM Module
GNU General Public License v3.0
54 stars 19 forks source link

Read email template from file #37

Open Jnchi opened 5 years ago

Jnchi commented 5 years ago

Currently defined in the source as,

#define USER_PROMPT "An email with a one-time passcode was sent to your email." \
                "\nEnter the code at https://aka.ms/devicelogin, then press enter.\n"

Template should be stored in /etc/aad/template.d/, (See: https://github.com/CyberNinjas/libnss_aad/issues/5); or similar; add this to the config file via template_dir.

Example

Contents of /etc/pam_aad.conf:

{ 
  "client": {
    "id": "{{client_id}}"
  },
  "domain": "{{domain}}",
  "group": {
    "id": "{{group_id}}"
  },
  "smtp_server": "{{smtp_server}}",
  "tenant": {
    "name": "{{organization}}.onmicrosoft.com",
    "address": "{{organization_email_address}}"
  },
  "template_dir": "{{template_dir}}"
}
Jnchi commented 5 years ago

@eredisg, see the new description.