nextcloud / mail

💌 Mail app for Nextcloud
https://apps.nextcloud.com/apps/mail
GNU Affero General Public License v3.0
833 stars 258 forks source link

mail app not searching receipents from ldap when sending email #8977

Open cableTh0rn opened 11 months ago

cableTh0rn commented 11 months ago

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

ChristophWurst commented 11 months ago

https://github.com/nextcloud/mail/issues/1215

cableTh0rn commented 11 months ago

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

Dazeilad commented 2 months ago

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

Hello, I am facing the same problem than you. It seems that you could solve it by unchecking the "Allow autocompletition when entering full name or email address", but actually it doesn't work for me. When checked, the autocompletion is made only with a full name, when unchecked the autocompletion doesn't work at all. Can you confirm you suceeded in solving this problem ?

cableTh0rn commented 2 months ago

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

Hello, I am facing the same problem than you. It seems that you could solve it by unchecking the "Allow autocompletition when entering full name or email address", but actually it doesn't work for me. When checked, the autocompletion is made only with a full name, when unchecked the autocompletion doesn't work at all. Can you confirm you suceeded in solving this problem ?

This seems to be broken again !!!

cableTh0rn commented 2 months ago

Hello, sorry to reopen this issue but this seems to rise again.

Nextcloud 28.0.1 Mail App 3.7.2

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

If "Allow autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)" is selected after typing exact email address contact can be selected but if the option is not selected auto complete does not work at all.

image

cableTh0rn commented 1 month ago

Again, Mail App autocomplete won't populate contacts from LDAP (system address book)