https://github.com/lldap/lldap logo
Jakob - Hey, I'm trying to get dovecot+postfix ...
# troubleshooting
j
Hey, I'm trying to get dovecot+postfix to use lldap. postfix uses dovecot. Dovecot auth works (and I expected postfix to work as well automatically...) But when receiving an email, I get the following in the log:
Copy code
LDAP request [ 3.05ms | 90.89% / 100.00% ] session_id: b4d57d6a-4704-4cca-ae08-1b921f316a7a
┝━ :bug: [debug]:  | msg: LdapMsg { msgid: 19, op: SearchRequest(LdapSearchRequest { base: "", scope: Subtree, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: And([Equality("memberof", "cn=mail,ou=groups,dc=example,dc=de"), Equality("uid", "jakob")]), attrs: ["uid"] }), ctrl: [] }
┝━ do_search [ 278µs | 9.11% ]
┕━ :bug: [debug]:  | response: SearchResultDone(LdapResult { code: InvalidDNSyntax, matcheddn: "", message: "Missing DN value", referral: [] })
The filter specified in the config is
(&(memberof=cn=mail,ou=groups,dc=example,dc=de)(uid=%{user}))
, which fits the debug msg IMHO. But I don't understand the error message. The filter works fine with ldapsearch and looks fine to me 🤔 Is the empty base a problem? Not sure why though, I specified it in the config. Thanks for any insight
a
message has been deleted
n
Hmm, yeah, the empty base is a problem. It shouldn't be, really, so feel free to open an issue (and that error message should be improved)
j
I'll try over the weekend. Thanks!
Oh well, that did not work out, sorry 🙂 Strange thing is, I finally found (rather took) the time to try again and it is working now. Don't know what went wrong, I just activated the config I was using in January again... Anyways, works as auth source for dovecot, now I'll need to create fields for quota and stuff for postfix in there. In case I succeed, I'll submit a config pull request