mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #520] smtp without authentication configured stills tries to authenticate #190
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#190
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leanderjanssen on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/520
I've tried to configure lldap to use smtp without authentication, by removing both the
userandpasswordparameters from the[smtp_options]section.This are the smtp options I've configured:
But when trying the initiate a password reset lldap still tries to start an authenticated smtp session.
This debug output also shows its trying to use the
adminuser. This doesn't seem right when trying to do an unauthenticated smtp session.Here is also some logging from the smtp server:
Used lldap version: 0.4.2 (docker image nitnelave/lldap:latest-alpine)
@nitnelave commented on GitHub (Apr 3, 2023):
From the error message, the email sender sees the smtp.user as "admin", so it tries to authenticate.
You can double check the configuration by starting LLDAP in verbose mode, it will start by dumping the config to the logs.
There are 4 places where the flag can come from: the config file, the command line, the environment variables, and the defaults.
In this case, the value comes from the defaults (and you could argue that it's a bug).
I'll make a note to change that, but in the meantime you can solve your problem by adding a
user: ""to your SMTP configuration.@leanderjanssen commented on GitHub (Apr 3, 2023):
Great, that indeed fixes the issue. Thanks.