Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Implement templates for emails #14

Open
oxr463 opened this issue Oct 8, 2021 · 0 comments
Open

Implement templates for emails #14

oxr463 opened this issue Oct 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@oxr463
Copy link
Contributor

oxr463 commented Oct 8, 2021

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: CyberNinjas/libnss_aad#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}}"
}

Source: CyberNinjas/pam_aad#37

@oxr463 oxr463 added the enhancement New feature or request label Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant