View Issue Details

IDProjectCategoryView StatusLast Update
0006054SOGoBackend Calendarpublic2024-11-05 19:45
Reportert0fik Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version5.11.2 
Summary0006054: Wrong address book DN LDAP
Description

When user LDAP address book is enabled SOGo will use username, value of attribute UIDFieldName or UIDFieldName@domain if SOGoEnableDomainBasedUID is
enabled instead value of attribute set by IDFieldName to build address book DN.
Wrong address book DN will cause infinite loop when Contacts are accessed.

--- cut ---
SOGoUserSources = (
{
type = ldap;
CNFieldName = cn;
UIDFieldName = mail;
IDFieldName = uid; // first field of the DN for direct binds
canAuthenticate = YES;
bindAsCurrentUser = YES;
baseDN = "ou=people,dc=example,dc=com";
bindDN = "uid=sogo,ou=service,dc=example,dc=com";
bindPassword= "secretpassword";
bindFields = ( mail );
displayName = "Global Addressbook";
hostname = "ldap://ldap-server:389/????!StartTLS";
id = public_users;
isAddressBook = YES;
passwordPolicy = YES;
abOU = "addressbook";
}
);
[...]
SOGoDebugRequests = YES;
SoDebugBaseURL = YES;
ImapDebugEnabled = YES;
LDAPDebugEnabled = YES;
PGDebugEnabled = YES;
SOGoUIxDebugEnabled = YES;
WODontZipResponse = YES;
--- cut ---

user DN = uid=exuser,ou=people,dc=example,dc=com

--- cut ---
ov 05 20:18:03 sogod [9]: 192.168.88.233, 10.42.0.126 "GET /SOGo/so/exuser@example.com/Contacts/addressbooksList HTTP/1.1" 200 19/0 0.023 - - 0 - 12
Nov 05 20:18:03 sogod [9]: |SOGo| starting method 'GET' on uri '/SOGo/so/exuser@example.com/Contacts/addressbooksList'
Nov 05 20:18:03 sogod [9]: <0x0x55f3bc141790[NGLdapConnection]> Using ldap_initialize for LDAP URL: ldap://ldap-server:389/????!StartTLS
2024-11-05 20:18:03.945 sogod[9:9] -[NGLdapConnection _searchAtBaseDN:qualifier:attributes:scope:]: search at base 'ou=addressbook,uid=exuser@example.com,ou=people,dc=example,dc=com' filter '(objectclass=)' for attrs ''
--- cut ---

Steps To Reproduce
  1. Configure SOGo to use LDAP as user source
  2. Create users with uid attribute <> mail attribute
  3. Login as user
  4. Go to user contacts
Tagsldap, ldaps

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-11-05 19:45 t0fik New Issue
2024-11-05 19:45 t0fik Tag Attached: ldap
2024-11-05 19:45 t0fik Tag Attached: ldaps