Skip to content

Commit

Permalink
Replace PAM converse with email
Browse files Browse the repository at this point in the history
Sends the user an email via SMTP,
instead of interactive converse.

Closes: CyberNinjas/pam_aad#24
  • Loading branch information
Jnchi committed Mar 21, 2019
1 parent e2e46ee commit 40b9c78
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 219 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RUN apt update && apt install -y \
libpam0g-dev \
libssl-dev \
libtool \
pkg-config
pkg-config \
uuid-dev

WORKDIR /tmp
RUN git clone https://github.com/benmcollins/libjwt && \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ libdir = $(PAMDIR)
lib_LTLIBRARIES= pam_aad.la

pam_aad_la_SOURCES = src/pam_aad.c
pam_aad_la_LIBADD = -lcurl -ljansson -ljwt -lpam -lsds
pam_aad_la_LIBADD = -lcurl -ljansson -ljwt -lpam -lsds -luuid
pam_aad_la_CFLAGS = $(AM_CFLAGS)
pam_aad_la_LDFLAGS = $(AM_LDFLAGS) $(MODULES_LDFLAGS) -export-symbols-regex "^pam_sm_"

Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ Create the file ```/etc/pam_aad.conf``` and fill it with:
```mustache
{
"client": {
"id": "{{client_id}}"
},
"domain": "{{domain}}",
"tenant": "{{organization}}.onmicrosoft.com>"
"id": "{{client_id}}"
},
"domain": "{{domain}}",
"tenant": {
"name": "{{organization}}.onmicrosoft.com",
"address": "{{organization_email_address}}"
},
"smtp_server": "{{smtp_server}}"
}
```

Expand Down
Loading

0 comments on commit 40b9c78

Please sign in to comment.