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] <[email protected]> On Behalf Of dbuerer2023 Sent: jeudi 2 avril 2026 22:17 To: [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; } ); }; };
