Fireshare supports LDAP authentication, allowing users to sign in with credentials from a central directory such as OpenLDAP, Authentik, or Active Directory. When LDAP is enabled, Fireshare binds to your directory server using an admin service account, looks up the user by the filter you define, and verifies their password — no local password is stored or accepted for LDAP-managed accounts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ShaneIsrael/fireshare/llms.txt
Use this file to discover all available pages before exploring further.
Environment Variables
All LDAP configuration is done through environment variables. Every variable in the table below must be provided whenLDAP_ENABLE=true.
| Variable | Description | Example | Default |
|---|---|---|---|
LDAP_ENABLE | Set to true to enable LDAP authentication. | true | false |
LDAP_URL | Connection URL for your LDAP server, including protocol and port. | ldap://localhost:3890 | — |
LDAP_BINDDN | Distinguished name (DN) of the service account Fireshare uses to bind to the directory and perform searches. | uid=admin,ou=people | — |
LDAP_PASSWORD | Password for the service account specified in LDAP_BINDDN. | — | — |
LDAP_BASEDN | Base DN from which user searches begin. | dc=example,dc=com | — |
LDAP_USER_FILTER | LDAP search filter used to locate the user attempting to log in. Use {input} as a placeholder for the username entered in the login form. | uid={input} | — |
LDAP_ADMIN_GROUP | Full DN of the LDAP group whose members are granted Fireshare admin privileges via the memberOf attribute. If left empty, all LDAP users are treated as admins. | cn=admins,ou=groups,dc=example,dc=com | — |
The {input} Placeholder
The LDAP_USER_FILTER value is a standard LDAP search filter with one special token: {input}. When a user submits the login form, Fireshare replaces {input} with the username they typed before sending the search to the directory.
For example, with LDAP_USER_FILTER=uid={input} and a login attempt by alice, Fireshare sends the filter uid=alice to the directory.
Admin Group Mapping
Admin status is determined by thememberOf attribute on the user’s directory entry. Set LDAP_ADMIN_GROUP to the full DN of the group you want to grant admin access — for example, cn=admins,ou=groups,dc=example,dc=com. Users who are members of that group will be given admin privileges in Fireshare on login.
Your LDAP server must populate the
memberOf attribute on user entries for admin group mapping to work. Verify this is enabled in your directory configuration before setting LDAP_ADMIN_GROUP.Docker Compose Example
Add all six LDAP variables to theenvironment: block of your Fireshare service:
Important Behaviour Notes
- LDAP users cannot use local passwords. Once a user has signed in via LDAP, their account is flagged as
ldap=truein the database. Subsequent login attempts for that account go through LDAP only — the local password field is ignored. - The
ldap=trueflag is set on first login. If a local account existed before LDAP was enabled and the same username is used to log in via LDAP, the flag is updated after the first successful LDAP authentication. - Admin status is evaluated on every login. Fireshare checks
memberOfeach time a user authenticates, so adding or removing a user from the admin group in your directory takes effect on their next login.
Troubleshooting
For a full troubleshooting guide covering LDAP and other topics, see Troubleshooting.
LDAP_ENABLE and all connection variables must be set
LDAP_ENABLE=true alone is not sufficient. All of LDAP_URL, LDAP_BINDDN, LDAP_PASSWORD, LDAP_BASEDN, and LDAP_USER_FILTER must also be present or the LDAP login flow will fail.
User filter format
The{input} placeholder is case-sensitive and must be wrapped in curly braces exactly as shown. A common working filter for OpenLDAP is uid={input}. For Active Directory, use sAMAccountName={input}.
Admin group not taking effect
Confirm that:LDAP_ADMIN_GROUPcontains the full DN of the group, not just the common name.- Your LDAP server is configured to return the
memberOfattribute on user search results. - The user is actually a member of the group in the directory (not just a nested group member — check whether your server supports recursive
memberOf).
Users appearing as non-admin after enabling LDAP
If a user account was created locally before LDAP was enabled, theldap flag on that record may be false. The correct state is applied automatically the first time the user logs in through LDAP. If the issue persists, you can inspect the database directly:
