Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant