To continue troubleshooting, I change the user source from ldap to sql.
Same error -
2026-05-12 22:04:23.575 sogod[457676:457676] EXCEPTION: <NSException:
0x5c62ad6ce620> NAME:NSInvalidArgumentException REASON:Tried to add nil
value for key 'cn' to dictionary INFO:{}
And my user source config:
From: [email protected] <[email protected]> On Behalf Of dbuerer2023
Sent: Tuesday, April 7, 2026 12:33 PM
To: [email protected]
Subject: [SOGo] FW: Tried to add nil value for key 'cn' to dictionary
INFO:{}
Is this helpful to troubleshoot?
From: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> >
Sent: Friday, April 3, 2026 9:19 AM
To: '[email protected]' <[email protected] <mailto:[email protected]> >
Subject: RE: [SOGo] Tried to add nil value for key 'cn' to dictionary
INFO:{}
[email protected],ou=users,o=ravidenterprises.com,dc=ravid,dc
=online
<mailto:[email protected],ou=users,o=ravidenterprises.com,dc=
ravid,dc=online>
cn: David Buerer
givenName: David
mail: [email protected] <mailto:[email protected]>
objectClass: top
objectClass: inetOrgPerson
objectClass: person
sn: Buerer
uid: [email protected] <mailto:[email protected]>
userPassword: {SHA}K5Re+abI7Wggm4/855NsTYgzzdE=
I set my server up like this -
If there's any better recommendations, let me know. I'm fairly new to LDAP
and new to sogo as well.
From: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> > On Behalf Of
"Quentin Hivert"
Sent: Friday, April 3, 2026 3:40 AM
To: [email protected] <mailto:[email protected]>
Subject: RE: [SOGo] Tried to add nil value for key 'cn' to dictionary
INFO:{}
Hello, could you give me the .ldif of one of your users?
--
Quentin Hivert
Lead Dev R&D
<mailto:[email protected]> [email protected]
Alinto
19, quai Perrache
FR-69002 Lyon
<https://www.alinto.com/> https://www.alinto.com
<https://www.linkedin.com/company/alinto> Linkedin FR
From: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> > On Behalf Of
dbuerer2023
Sent: jeudi 2 avril 2026 22:17
To: [email protected] <mailto:[email protected]>
Subject: RE: [SOGo] Tried to add nil value for key 'cn' to dictionary
INFO:{}
Does anyone have ideas on this?
From: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> > On Behalf Of
dbuerer2023
Sent: Wednesday, March 25, 2026 12:19 PM
To: [email protected] <mailto:[email protected]>
Subject: [SOGo] Tried to add nil value for key 'cn' to dictionary INFO:{}
Hi - Really optimistic about sogo and love how it's coming together in my
testing.
My sogo is setup to authenticate against LDAP. It was working great until I
went to setup for multi-domain. After I attempt to login, I get a UI error
message "Unhandled error response". Can't figure out how to fix it.
When I look at the logs, I see this:
ar 25 10:36:10 sogod [1763072]: |SOGo| starting method 'POST' on uri
'/SOGo/connect'
Mar 25 10:36:10 sogod [1763072]: <0x0x59d430ceae00[NGLdapConnection]> Using
ldap_init (deprecated) for LDAP host:port 127.0.0.1:389
Mar 25 10:36:10 sogod [1763072]: SOGoRootPage successful login from
'73.190.117.120' for user '[email protected]' - expire = -1
grace = -1
Mar 25 10:36:10 sogod [1763072]: <0x0x59d430b91360[NGLdapConnection]> Using
ldap_init (deprecated) for LDAP host:port 127.0.0.1:389
2026-03-25 10:36:10.900 sogod[1763072:1763072] -[NGLdapConnection
_searchAtBaseDN:qualifier:attributes:scope:]: search at base
'ou=users,o=ravidenterprises.com,dc=ravid,dc=online' filter
'(|(uid=dbuerer)(mail=dbuerer))' for attrs '*'
2026-03-25 10:36:10.900 sogod[1763072:1763072] EXCEPTION: <NSException:
0x59d430d76420> NAME:NSInvalidArgumentException REASON:Tried to add nil
value for key 'cn' to dictionary INFO:{}
Mar 25 10:36:10 sogod [1763072]: |SOGo| request took 0.003371 seconds to
execut
Some things I note:
1. Login to LDAP is reporting success
2. I'm very new to LDAP but..the search filter in the log, after that,
appears to be looking for uid=dbuerer but my uid is
[email protected] <mailto:[email protected]> - Is
this a problem?
3. The Error "tried to add nil for value key=cn - that key is defined
and has a value.
>From my config,
1. I'm using multi-domain so SOGoUserSources is commented out. Is that
correct?
2. SOGoEnableDomainBasedUID = YES;
3.
4. domains = {
ravidenterprises.com = {
SOGoMailDomain = ravidenterprises.com;
SOGoUserSources = (
{
type = ldap;
CNFieldName = cn;
IDFieldName = uid;
UIDFieldName = uid;
baseDN =
"ou=users,o=ravidenterprises.com,dc=ravid,dc=online";
bindDN =
"uid=sogo,ou=users,dc=ravid,dc=online";
bindPassword = <removed because I'm only a
little silly>;
bindFields = (uid,mail);
canAuthenticate = YES;
displayName = "Shared Addresses";
hostname = 127.0.0.1;
id = public_ravidenterprsies;
isAddressBook = YES;
port = 389;
}
);
};
};