[GH-ISSUE #743] [BUG] No Emails Attempted To Be Sent #268

Closed
opened 2026-02-27 08:16:15 +03:00 by kerem · 5 comments
Owner

Originally created by @ghost on GitHub (Nov 21, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/743

Preface: example.com is not the domain in use, of course. It's just used for redaction of information in this GitHub issue. Note also: I do not use Discord.


When clicking Reset password on https://example.com/reset-password/step1, no email is even attempted to be sent at all. The UI says A reset token has been sent to your email., but no such thing happens nor is it even attempted.

This is the only thing that appears in verbose logs when trying this (note that test is the user):

2023-11-21T19:21:34.049506181+00:00  DEBUG    HTTP request [ 138µs | 100.00% ] method: "GET" | uri: "/auth/reset/step1/test"
2023-11-21T19:21:34.049629773+00:00  DEBUG    ┕━ 🐛 [debug]:  | status_code: 200

Docker image in use: ghcr.io/lldap/lldap:stable (sha256 hash of 7df30065344c5b7f73bae2591db779460ae937e39e11b4a5d1adeb91082ed97e which is for amd64).

Redacted docker env file:

LLDAP_VERBOSE=true
LLDAP_LDAP_HOST=0.0.0.0
LLDAP_LDAP_PORT=3890
LLDAP_HTTP_HOST=0.0.0.0
LLDAP_HTTP_PORT=17170
LLDAP_HTTP_URL=https://example.com
LLDAP_JWT_SECRET=REDACTED
LLDAP_LDAP_BASE_DN=dc=example,dc=com
LLDAP_LDAP_USER_DN=example
LLDAP_LDAP_USER_EMAIL=example@example.com
LLDAP_LDAP_USER_PASS=REDACTED
LLDAP_DATABASE_URL=sqlite:///data/users.db?mode=rwc
#LLDAP_KEY_FILE=
LLDAP_KEY_SEED=REDACTED
#LLDAP_IGNORED_USER_ATTRIBUTES=[ "sAMAccountName" ]
#LLDAP_IGNORED_GROUP_ATTRIBUTES=[ "mail", "userPrincipalName" ]
LLDAP_SMTP_OPTIONS__ENABLED_PASSWORD_RESET=true
LLDAP_SMTP_OPTIONS__SERVER=smtp.mailbox.org
LLDAP_SMTP_OPTIONS__PORT=465
LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=TLS
LLDAP_SMTP_OPTIONS__USER=REDACTED
LLDAP_SMTP_OPTIONS__PASSWORD=REDACTED
LLDAP_SMTP_OPTIONS__FROM=Account Service <accounts@example.com>
LLDAP_SMTP_OPTIONS__REPLY_TO=Do Not Reply <noreply@example.com>
LLDAP_LDAPS_OPTIONS__ENABLED=false
#LLDAP_LDAPS_OPTIONS__PORT=6360
#LLDAP_LDAPS_OPTIONS__CERT_FILE=
#LLDAP_LDAPS_OPTIONS__KEY_FILE=
Originally created by @ghost on GitHub (Nov 21, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/743 Preface: `example.com` is not the domain in use, of course. It's just used for redaction of information in this GitHub issue. Note also: I do not use Discord. --- When clicking `Reset password` on `https://example.com/reset-password/step1`, no email is even attempted to be sent at all. The UI says `A reset token has been sent to your email.`, but no such thing happens nor is it even attempted. This is the *only* thing that appears in verbose logs when trying this (note that `test` is the user): ``` 2023-11-21T19:21:34.049506181+00:00 DEBUG HTTP request [ 138µs | 100.00% ] method: "GET" | uri: "/auth/reset/step1/test" 2023-11-21T19:21:34.049629773+00:00 DEBUG ┕━ 🐛 [debug]: | status_code: 200 ``` Docker image in use: `ghcr.io/lldap/lldap:stable` (sha256 hash of `7df30065344c5b7f73bae2591db779460ae937e39e11b4a5d1adeb91082ed97e` which is for `amd64`). Redacted docker env file: ```env LLDAP_VERBOSE=true LLDAP_LDAP_HOST=0.0.0.0 LLDAP_LDAP_PORT=3890 LLDAP_HTTP_HOST=0.0.0.0 LLDAP_HTTP_PORT=17170 LLDAP_HTTP_URL=https://example.com LLDAP_JWT_SECRET=REDACTED LLDAP_LDAP_BASE_DN=dc=example,dc=com LLDAP_LDAP_USER_DN=example LLDAP_LDAP_USER_EMAIL=example@example.com LLDAP_LDAP_USER_PASS=REDACTED LLDAP_DATABASE_URL=sqlite:///data/users.db?mode=rwc #LLDAP_KEY_FILE= LLDAP_KEY_SEED=REDACTED #LLDAP_IGNORED_USER_ATTRIBUTES=[ "sAMAccountName" ] #LLDAP_IGNORED_GROUP_ATTRIBUTES=[ "mail", "userPrincipalName" ] LLDAP_SMTP_OPTIONS__ENABLED_PASSWORD_RESET=true LLDAP_SMTP_OPTIONS__SERVER=smtp.mailbox.org LLDAP_SMTP_OPTIONS__PORT=465 LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=TLS LLDAP_SMTP_OPTIONS__USER=REDACTED LLDAP_SMTP_OPTIONS__PASSWORD=REDACTED LLDAP_SMTP_OPTIONS__FROM=Account Service <accounts@example.com> LLDAP_SMTP_OPTIONS__REPLY_TO=Do Not Reply <noreply@example.com> LLDAP_LDAPS_OPTIONS__ENABLED=false #LLDAP_LDAPS_OPTIONS__PORT=6360 #LLDAP_LDAPS_OPTIONS__CERT_FILE= #LLDAP_LDAPS_OPTIONS__KEY_FILE= ```
kerem 2026-02-27 08:16:15 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@nitnelave commented on GitHub (Nov 21, 2023):

Hey! At the top of the verbose logs, when you start LLDAP, you'll have the config printed. Can you post the SMTP section?

Note that if there is no email configured/email reset is not enabled, I think that's consistent with the logs you get.

<!-- gh-comment-id:1821572296 --> @nitnelave commented on GitHub (Nov 21, 2023): Hey! At the top of the verbose logs, when you start LLDAP, you'll have the config printed. Can you post the SMTP section? Note that if there is no email configured/email reset is not enabled, I think that's consistent with the logs you get.
Author
Owner

@nitnelave commented on GitHub (Nov 21, 2023):

(in particular, I think you'll see that the config option is "enable_password_reset" and your environment variable is "enabled_password_reset")

<!-- gh-comment-id:1821574330 --> @nitnelave commented on GitHub (Nov 21, 2023): (in particular, I think you'll see that the config option is "enable_password_reset" and your environment variable is "enabled_password_reset")
Author
Owner

@ghost commented on GitHub (Nov 21, 2023):

Aha, you're onto something. It's not reading my LLDAP_SMTP_OPTIONS__ stuff (but it's reading everything else). How strange...

Edit: going through now and re-verifying my terrible copy/paste...

<!-- gh-comment-id:1821575378 --> @ghost commented on GitHub (Nov 21, 2023): Aha, you're onto something. It's not reading my `LLDAP_SMTP_OPTIONS__` stuff (but it's reading everything else). How strange... Edit: going through now and re-verifying my terrible copy/paste...
Author
Owner

@ghost commented on GitHub (Nov 21, 2023):

Woohoo! Got there! Sometimes you just need another pair of eyes... :D

<!-- gh-comment-id:1821581335 --> @ghost commented on GitHub (Nov 21, 2023): Woohoo! Got there! Sometimes you just need another pair of eyes... :D
Author
Owner

@francescor commented on GitHub (Jul 17, 2024):

note for quick reader

in the above

< LLDAP_SMTP_OPTIONS__ENABLED_PASSWORD_RESET=true
> LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true
<!-- gh-comment-id:2233258233 --> @francescor commented on GitHub (Jul 17, 2024): note for quick reader in the above ``` < LLDAP_SMTP_OPTIONS__ENABLED_PASSWORD_RESET=true > LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#268
No description provided.