View Issue Details

IDProjectCategoryView StatusLast Update
0006256SOGoBackend Generalpublic2026-10-15 00:23
Reporterjdime Assigned Toqhivert  
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Summary0006256: SOGO doesn't start with "tlsVerifyMode=None"
Description

After updating to 5.12.12 , I had issues with LDAP due to a self signed cert but attempting to add "?tlsVerifyMode=None;" as indicated in the News entry seems to prevent SOGO from starting up. Nothing was logged in the SOGO log either. I was able to resolve this by adding the cert as trusted on the server. Is there some issue preventing this tlsVerifyMode from working properly as described?

Steps To Reproduce

Modify ldaps entry to format as shown in News article:

hostname = ldaps://hostname:636?tlsVerifyMode=None;

TagsNo tags attached.

Activities

qhivert

qhivert

2026-10-14 07:21

administrator   ~0018576

Hello,
No tlsVerifyMode=None should be enough.
Could you show me your SOGoUserSources block in your sogo.conf ? (mind the password in it)

Could you also add LDAPDebugEnabled = YES; and try (without your cert ibeing trusted) and show me the log ?

jdime

jdime

2026-10-15 00:07

reporter   ~0018577

SOGoUserSources = (
{
type = ldap;
CNFieldName = displayName;
UIDFieldName = cn;
IDFieldName = cn; // first field of the DN for direct binds
bindFields = (cn, mail); // array of fields to use for indirect binds
baseDN = "dc=company,dc=com";
bindDN = "cn=sogo,ou=systemaccounts,dc=company,dc=com";
bindPassword = "REDACTED;
canAuthenticate = YES;
displayName = "Address Book";
hostname = ldaps://hostname.com:636?tlsVerifyMode=None;
/ hostname = ldap://hostname.com:389; /
id = company;
isAddressBook = YES;
},

I was seeing the following error:

2026-10-14 20:00:02.601 sogod[217599:217599] File NSDictionary.m: 671. In -[NSDictionary initWithContentsOfFile:] Contents of file '/etc/sogo/sogo.conf' does not contain a dictionary
<0x0x55fed9b723f0[SOGoStartupLogger]> Cannot read configuration from '/etc/sogo/sogo.conf'. Aborting

The only change besides a working config and this is adding "?tlsVerifyMode=None"

jdime

jdime

2026-10-15 00:09

reporter   ~0018578

The above post filtered out the asterisks but the second hostname in the block is commented out

jdime

jdime

2026-10-15 00:23

reporter   ~0018579

Adding quotes seems to fix it so guessing it didn't like the special characters without quotes.

hostname = "ldaps://hostname.com:636?tlsVerifyMode=None";

Issue History

Date Modified Username Field Change
2026-10-13 17:57 jdime New Issue
2026-10-14 07:21 qhivert Note Added: 0018576
2026-10-14 07:21 qhivert Assigned To => qhivert
2026-10-14 07:21 qhivert Status new => feedback
2026-10-15 00:07 jdime Note Added: 0018577
2026-10-15 00:07 jdime Status feedback => assigned
2026-10-15 00:09 jdime Note Added: 0018578
2026-10-15 00:23 jdime Note Added: 0018579