Closed Jnchi closed 5 years ago
Converse
An email with a one-time passcode was sent to your email.
Hi {{username}}@{{domain}},
Please use this one-time passcode (OTP) to sign in to your account: {{device_code}.
This OTP expires in {{expiration}} minutes.
Please do not REPLY to this email address, it does not support receiving messages.
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
"rfcpedant.example.org>\r\n",
Source: https://curl.haxx.se/libcurl/c/smtp-mail.html
Resources:
(gdb) print msg->data[3]
$8 = 0x600000000 <error: Cannot access memory at address 0x600000000>
Mar 18 09:11:23 debian sshd[27230]: Connection reset by 192.168.1.120 port 50252 [preauth]
Mar 18 09:11:44 debian sshd[27251]: error: PAM: User account has expired for jnchi from 192.168.1.120
Mar 18 09:11:44 debian sshd[27251]: Failed keyboard-interactive/pam for jnchi from 192.168.1.120 port 50340 ssh2
Notify user to check their email
/etc/pam.d/sshd
# Notify user to check their email.
password required pam_echo.so file=/usr/share/doc/aad.txt
/usr/share/doc/aad.txt
An email with a one-time passcode was sent to your email.
Resources:
https://curl.haxx.se/libcurl/c/smtp-tls.html
https://tools.ietf.org/html/rfc5322
https://gist.github.com/Jnchi/83277f5559bbdc6af4554d3dec6ad64f#file-send_email-c
Depends on:
https://github.com/CyberNinjas/pam_aad/pull/25