[enhancement]:LDAP Authentication for Multiple Subdomains in Stalwart Mail Server #1103
Unanswered
Schnelle02
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It looks like a configuration issue with your filters and/or DN. I recommended that you use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
Issue: LDAP Authentication for Multiple Subdomains in Stalwart Mail ServerA bug happened!
How can we reproduce the problem?
I’m trying to configure my Stalwart Mail Server to authenticate users against an OpenLDAP Directory Server. My LDAP directory is structured as follows:
dc=domain,dc=tech
|---dc=subdomain1,dc=domain,dc=tech
| |---ou=User
| | |[email protected]
|
|---dc=subdomain2,dc=domain,dc=tech
|---ou=User
|[email protected]
Goal: I want users from both subdomains (subdomain1.domain.tech and subdomain2.domain.tech) to authenticate via LDAP on the Stalwart Mail Server and send emails using their respective domains.
Problem: I can't figure out how to configure Stalwart in a way that it properly queries the LDAP directory and allows authentication for both subdomains. Only one subdomain works at a time with my current attempts.
I also attempted to configure two separate LDAP entries within the Stalwart configuration, one for each subdomain. For example:
[auth.ldap.subdomain1]
url = "ldap://ldap.domain.tech"
base_dn = "dc=subdomain1,dc=domain,dc=tech"
search_filter = "(&(objectClass=inetOrgPerson)(mail=%u))"
[auth.ldap.subdomain2]
url = "ldap://ldap.domain.tech"
base_dn = "dc=subdomain2,dc=domain,dc=tech"
search_filter = "(&(objectClass=inetOrgPerson)(mail=%u))"
However, this also didn’t work as expected—again, only one subdomain would authenticate successfully, while the other would fail.
Version
v0.11.x
What database are you using?
RocksDB
What blob storage are you using?
RocksDB
Where is your directory located?
LDAP
What operating system are you using?
Linux
Relevant log output
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions