auth: methods: ldap: userPassword: "${FILEBROWSER_LDAP_USER_PASSWORD}" doesn't take the value of environment variable

Author: ShumaDKCreated Sep 30, 2026Updated Sep 30, 2026
Labelsdocumentation

Description I'm trying to substitute LDAP user password in config.yaml with environment variable. When I change the string from userPassword: "password" to userPassword: "${FILEBROWSER_LDAP_USER_PASSWORD}" the filebrowser doesn't start succcessfuly anymore with an error. If I change the string back to userPassword: "password" it starts OK. The environment variable FILEBROWSER_LDAP_USER_PASSWORD is defined correctly in my environment.

Expected behaviour I expect filebrowser to take the password stored in the environmet variable as it stated in config.yaml according to documentation: https://filebrowserquantum.com/en/docs/configuration/authentication/ldap/#environment-variables-best-practice ...and start as it starts with password explicitly defined in config.yaml 2026/09/30 16:47:43 [DEBUG] Default SQLite driver initialized 2026/09/30 16:47:43 [INFO ] cache directory setup successfully: tmp 2026/09/30 16:47:43 [INFO ] LDAP Auth configured successfully 2026/09/30 16:47:43←[33m [WARN ] ffmpeg unavailable: ffmpeg: binary not found: ffmpeg: exec: "ffmpeg": executable file not found in %PATH%←[0m 2026/09/30 16:47:43 [INFO ] Initializing state management system... 2026/09/30 16:47:44 [INFO ] Initializing FileBrowser Quantum (v2.0.9-beta) 2026/09/30 16:47:44 [INFO ] Using Config file : config.yaml 2026/09/30 16:47:44 [INFO ] Auth Methods : [password ldap] 2026/09/30 16:47:44 [INFO ] Using existing database : ./filebrowser.sqlite 2026/09/30 16:47:44 [INFO ] Sources : [share: \m-33\d$\FBQ\share] 2026/09/30 16:47:44 [INFO ] SQL Journal Mode : OFF 2026/09/30 16:47:44 [INFO ] initializing index: [share] 2026/09/30 16:47:44 [INFO ] Resetting admin user to default username and password. 2026/09/30 16:47:44 [INFO ] Generating PWA icons... 2026/09/30 16:47:44 [INFO ] Running at : http://0.0.0.0/

What is happening instead? 2026/09/30 16:14:47 [DEBUG] Default SQLite driver initialized 2026/09/30 16:14:47←[33m [WARN ] cacheDir slow write speed detected: 46.52 MB/s (214.98 ms) Please review documentation to ensure a valid cache directory is configured https://filebrowserquantum.com/en/docs/configuration/server/#cachedir Ensure you configure a faster cache directory via the server.cacheDir configuration option.←[0m 2026/09/30 16:14:47 [INFO ] cache directory setup successfully: tmp 2026/09/30 16:14:48←[31m [FATAL] LDAP connection check failed: LDAP bind failed (check userDN and userPassword): LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C090400, comment: AcceptSecurityContext error, data 52e, v1db1 ←[0m

Additional context

2026/09/30 16:57:25 [DEBUG] Default SQLite driver initialized FileBrowser Quantum - A modern web-based file manager Version : v2.0.9-beta Commit : 7a06fb1 Release Info : https://github.com/gtsteffaniak/filebrowser/releases/tag/v2.0.9-beta

How to reproduce? Just replace the explicitly defined LDAP user password in config.yaml with the defined environment variable "${FILEBROWSER_LDAP_USER_PASSWORD}".

Files

Source: gtsteffaniak/filebrowser