View Issue Details

IDProjectCategoryView StatusLast Update
0005154SOGoBackend Calendarpublic2020-09-09 13:37
ReporterMrT2020 Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version5.0.0 
Summary0005154: Attendee canonifing/freebusy/ldap Query?
Description

Caldav-Client (thunderbird, emclient, .....regardless which client, issue seems to depend on query on the backend)->

Each user has additional email addresses (aliases to the main account-> mail,mailalias).

User Account in ldap Structure:
baseDN = "ou=People,ou=x1.local,ou=Domains,dc=internal";

uid=test2
mail=test2@x1.local
mailAlias=test2.test2@x1.local
mailAlias=t2.test2@x1.local
mailAlias=t2@x1.local

uid=test1
mail=test1@x1.local
mailAlias=test1.test1@x1.local
mailAlias=t1.test1@x1.local
mailAlias=t1@x1.local


Result:

  • free/busy only shown if User's "Main" Mail ("Invite Attendees") is selected.
  • also matching responses by E-Mail or Invitations to an Mail-Alias Address can not be assigned to the corresponding user account
Steps To Reproduce

f.e. in thunderbird:

  1. as User test2@x1.local create a new event and invite Attendee using mail alias of test1@x1.local f.e. t1@x1.local
    -> no freebusy
  2. as User test2@x1.local create a new event and invite Attendee using mail alias of test1@x1.local f.e. test1@x1.local
    -> freebusy is displayed

for case 1:
-> debug in TB: CalDavRequest.jsm: Response (Invalid Calendar User): <?xml version="1.0" encoding="utf-8"?><n1:schedule-response xmlns:n1="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:"><n1:response><n1:recipient>mailto:t3@x1.local</n1:recipient><n1:request-status>3.7;Invalid Calendar User</n1:request-status></n1:response></n1:schedule-response>

-> sogo debug (ldap): sogod[17115:17151] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]:
search at base 'ou=people,ou=x1.local,ou=domains,dc=internal'
filter '(&(|(uid=test1.test1)(mail=test1.test1)(mailAlias=test1.test1))(&(objectclass=SGT)(sogoActive=1)(!(pwdAccountLockedTime=))))' for attrs ''
-> Query can never match against mail or mailAlias attribute in ldap

Additional Information

OS: Debian GNU/Linux 10 (buster)
SOGo: 5.0.0

possible Important lines in sogo.conf for User Source :
....
SOGoForceExternalLoginWithEmail = YES;
....
domains = {
x1.local = {
SOGoMailDomain = x1.local;
SOGoUserSources = (
{
....
LoginFieldNames = c_uid;
CNFieldName = cn;
UIDFieldName = uid;
IDFieldName = mail;
bindFields = (mail,uid);
baseDN = "ou=People,ou=x1.local,ou=Domains,dc=internal";
scope = one;
canAuthenticate = YES;
displayName = "X1LOCAL";
MailFieldNames = (mail,mailAlias);
filter = "((objectclass=SGT) AND (sogoActive=1) AND (pwdAccountLockedTime<>'*'))";
IMAPLoginFieldName = mail;
SearchFieldNames = ("sn" , "cn" , "displayName" , "telephoneNumber" , "description" , "mail" , "mailAlias");
isAddressBook = YES;
id = x1.local;
....
})}}

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-09-09 13:37 MrT2020 New Issue