[GH-ISSUE #263] LLDAP_LDAP_USER_PASS_FILE does not work #95

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

Originally created by @ColonelThirtyTwo on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/263

Starting like this:

col@col-laptop-asus ~/D/lldap (main)> echo -n "asdfasdfasdf" > admin_password
col@col-laptop-asus ~/D/lldap (main)> env LLDAP_LDAP_USER_PASS_FILE="./admin_password" cargo run -- run --config-file ./config.toml

Trying to log in with username "admin" password "asdfasdfasdf" results in an "Invalid username or password" message.

I've removed the databases for the test - there are no existing users.

Originally created by @ColonelThirtyTwo on GitHub (Jul 15, 2022). Original GitHub issue: https://github.com/lldap/lldap/issues/263 Starting like this: ``` col@col-laptop-asus ~/D/lldap (main)> echo -n "asdfasdfasdf" > admin_password col@col-laptop-asus ~/D/lldap (main)> env LLDAP_LDAP_USER_PASS_FILE="./admin_password" cargo run -- run --config-file ./config.toml ``` Trying to log in with username "admin" password "asdfasdfasdf" results in an "Invalid username or password" message. I've removed the databases for the test - there are no existing users.
kerem 2026-02-27 08:15:13 +03:00
Author
Owner

@ColonelThirtyTwo commented on GitHub (Jul 15, 2022):

Apparently the *_FILE vars are only read by `docker-entrypoint.sh, not by the main binary, so you can't use them if you're not using docker. Not very obvious.

<!-- gh-comment-id:1185872340 --> @ColonelThirtyTwo commented on GitHub (Jul 15, 2022): Apparently the `*_FILE` vars are only read by `docker-entrypoint.sh, not by the main binary, so you can't use them if you're not using docker. Not very obvious.
Author
Owner

@nitnelave commented on GitHub (Aug 2, 2022):

Created https://github.com/SergioBenitez/Figment/issues/51 to see if we can handle them at config loading time instead.

<!-- gh-comment-id:1202412966 --> @nitnelave commented on GitHub (Aug 2, 2022): Created https://github.com/SergioBenitez/Figment/issues/51 to see if we can handle them at config loading time instead.
Author
Owner

@nitnelave commented on GitHub (Sep 13, 2022):

I created the crate https://crates.io/crates/figment_file_provider_adapter to allow this pattern.

<!-- gh-comment-id:1245435677 --> @nitnelave commented on GitHub (Sep 13, 2022): I created the crate https://crates.io/crates/figment_file_provider_adapter to allow this pattern.
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#95
No description provided.