mirror of
https://github.com/lldap/lldap.git
synced 2026-04-26 08:45:55 +03:00
[PR #1312] [MERGED] Simplify LDAP filters and fix outdated roundcube mounts in mailserver example #1249
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#1249
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?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/1312
Author: @Copilot
Created: 10/4/2025
Status: ✅ Merged
Merged: 10/18/2025
Merged by: @nitnelave
Base:
main← Head:copilot/fix-3b5307c8-bfa1-484a-b25f-e6be6eb5ed43📝 Commits (5)
419352dInitial plan5a0e0c1Fix LDAP filter domain confusion in mailserver exampleb0cc440Fix outdated roundcube mounts (issue #1304)47bb2ffSimplify LDAP filters to use mail attribute only74081eeAdjust template variables📊 Changes
1 file changed (+8 additions, -4 deletions)
View changed files
📝
example_configs/mailserver.md(+8 -4)📄 Description
Problem
The docker-mailserver example configuration had two issues:
LDAP Filter Complexity: The LDAP query filters used OR logic with both
uidandmailattributes, which was unnecessarily complex for the mailserver use case.Outdated Roundcube Mounts: The generic volume mount for roundcube caused symbolic link errors and prevented static files from being served properly, breaking the roundcube webmail interface.
Root Causes
LDAP Filter Issue
The LDAP filters were using OR logic with both
uidandmailattributes:This was overly complex for mailserver lookups which only need to match against the mail attribute.
Roundcube Mount Issue
The generic volume mount
roundcube_data:/var/www/htmlwas causing symbolic link errors and breaking static file serving, as documented in roundcube/roundcubemail-docker#337.Solution
LDAP Filter Simplification
Simplified the LDAP filters to only match against the mail attribute:
This removes the unnecessary OR logic and focuses on mail-based lookups only, making the configuration simpler and more maintainable.
Roundcube Mount Fix
Replaced the generic volume mount with specific mounts and added plugin configuration:
This resolves the symbolic link errors and allows roundcube to load properly while supporting the carddav plugin for contact synchronization.
Testing
Users following this configuration will now be able to:
Fixes #1304
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.