• Contact Us
  • Home
  • Reference

Using OpenLDAP with Mealie

Written by Marty Heyman

Updated at January 28th, 2026

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

Table of Contents

Configuration

Mealie is an open-source, self-hosted recipe manager and meal planner designed for digitizing family recipes. It features a user-friendly interface that imports recipes via URL, removes ads/unnecessary stories, generates automated shopping lists, and supports multi-user collaboration. It is often used with Docker and integrates with smart home systems. 

Configuration is done solely with environmental variables in the mealie-api docker-compose config:

LDAP integration in Mealie currently only works with the nightly branch, so hkotel/mealie:api-nightly and hkotel/mealie:frontend-nightly rather than the current “stable” release of v1.0.0beta-5

Additional information can be found here: https://docs.mealie.io/documentation/getting-started/installation/backend-config/

Configuration

The following config should let you login with either members of the mealie group as a user, or as an admin user with members of the mealie-admin group.

Mealie first checks credentials in the mealie group to authenticate, then checks for the presence of the user in the mealie-admin group and elevates that account to admin status if present, therefore for any account to be an admin account it must belong in both the mealie group and the mealie-admin group.

It is recommended to create a readonly_user and add them to the ldap_strict_readonly group to bind with.

- LDAP_AUTH_ENABLED=true
- LDAP_SERVER_URL=ldap://ldap:389
- LDAP_TLS_INSECURE=true ## Only required for LDAPS with a self-signed certificate
- LDAP_BASE_DN=ou=people,dc=example,dc=com
- LDAP_USER_FILTER=(memberof=cn=mealie,ou=groups,dc=example,dc=com)
- LDAP_ADMIN_FILTER=(memberof=cn=mealie-admin,ou=groups,dc=example,dc=com)
- LDAP_QUERY_BIND=cn=readonly_user,ou=people,dc=example,dc=com
- LDAP_QUERY_PASSWORD=READONLY_USER_PASSWORD
- LDAP_ID_ATTRIBUTE=uid
- LDAP_NAME_ATTRIBUTE=displayName
- LDAP_MAIL_ATTRIBUTE=mail
Copyright © 2020-2024 Symas Corporation. All rights reserved.
mealie integration integrating openldap

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Using OpenLDAP with LibreNMS
  • Using OpenLDAP with Matrix's Synapse home server software
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2025, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand