mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #1053] [BUG] False positive warning on key_file with LDAPS #378
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#378
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 @oscarcarlsson on GitHub (Dec 4, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/1053
Describe the bug
I'm getting a false positive warning message regarding use of
key_filein my LDAPS configuration. It's a warning regarding using bothkey_seedandkey_file(which is from the main section of the configuration) which is not relevant for thekey_fileconfiguration under the[ldaps_options].To Reproduce
My configuration:
Expected behavior
No error message.
Logs
verbose=falsebelow but the warning is on the third line:Additional context
N/A
@nitnelave commented on GitHub (Dec 4, 2024):
key_filehas a default value (to know where to put the key by default). Have you tried doing what the error message says?"Set key_file to an empty string in the config to silence this message."
@oscarcarlsson commented on GitHub (Dec 4, 2024):
Yes, that silences the warning. But the warning is not relevant when setting
key_fileunder the ldaps section :)@nitnelave commented on GitHub (Dec 4, 2024):
Unless I'm very mistaken, this has nothing to do with the ldaps section: it's complaining about the implicit
key_file=server_key(or whatever default value) at the top level.The idea is that if you didn't set a key_seed to start with, it'll create a key file with that value. If you then set a key_seed because you heard that it's better, it'll read that over the file and all the passwords will be unreadable; hence the warning.