mail icon indicating copy to clipboard operation
mail copied to clipboard

mail app not searching receipents from ldap when sending email

Open cableTh0rn opened this issue 1 year ago • 6 comments

Steps to reproduce

1.open mail app, select new message, From field is auto populated, To field is empty 2.type a few letters in To field 3.mail app should search system address book (accounts, nextcloud users) 4.mail app is not recommending receipents from ldap email addreses

Expected behavior

Mail app should recommend receipents groups and email addresses from LDAP)

Actual behavior

Mail app cannot find email addreses from LDAP / AD

Mail app version

3.4.2

Mailserver or service

No response

Operating system

Ubuntu 22

PHP engine version

PHP 8.0

Web server

Nginx

Database

MySQL

Additional info

When typing in To field mail app queries LDAP but searches for only objectclass=group, it sould query person too. Below is a line from debug log when typing "tosearch" chars in the To field of New Message dialog.

Calling LDAP function ldap_search with parameters [{},"ou=some ou,dc=domain,dc=tld","(&(&(|(objectclass=group)))(|(cn=tosearch@)(cn=tosearch@*)))",["cn","dn"],0,0,-1,0,[{"oid":"1.2.840.113556.1.4.319","value":{"size":500,"cookie":""},"iscritical":false}]]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 OPR/103.0.0.0","version":"27.1.1.0","data":{"app":"user_ldap"}

image

cableTh0rn avatar Oct 19 '23 09:10 cableTh0rn