General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] sogo.conf does not contain a dictionary


Chronological Thread 
  • From: Jens Erat < >
  • To: ,
  • Subject: Re: [SOGo] sogo.conf does not contain a dictionary
  • Date: Tue, 02 Dec 2014 20:18:34 +0100

Hi Mark,

`plparse` is helpful at debugging property lists, as it prints the line
which contains the problem (the character count is from the beginning of
the file, which is less helpful, don't be confused about that).

Regarding your configuration, there are two problems:

- The whole file must be a dictionary, wrapped in curly brackets `{ ... }`
- There are comments using `(: comment :)` and `// comment to the end of
line`, but none starting at `#`

Otherwise your configuration looks (syntactically) fine.

Regards,
Jens

On 02.12.2014 20:05, Mark Foley wrote:
> I've seen numerous posts on this problem, but no resolutions. I am
> installing
> the SOGo backend as part of openChange. I've created a /etc/sogo/sogo.conf
> file
> pretty much exactly monkey-typed from the openChange cookbook
> (http://www.openchange.org/cookbook/backends/sogo/index.html#sogo-configuration)
> except changing the domain name. When I run `sogod` as a non-root user I
> get
> the error:
>
> $ /usr/GNUstep/Local/Tools/Admin/sogod
> 2014-11-24 00:55:58.982 sogod[17879] File NSDictionary.m: 672. In -
> [NSDictionary initWithContentsOfFile:] Contents of file
> '/etc/sogo/sogo.conf'
> does not contain a dictionary
> <0x0x7f07242d21f0[SOGoStartupLogger]> Cannot read configuration from '/etc/
> sogo/sogo.conf'. Aborting
>
> From what I've read, this indicates a general syntax error in the sogo.conf
> file. Can someone help me figure out what that syntax error might be? Is
> there
> any kind of `lint`, or `testparm` tool to check the syntax?
>
> Here is my sogo.conf:
>
> WOLogFile = /var/log/sogo.log;
> WOPidFile = /var/run/sogo/sogo.pid;
> SOGoTimeZone = "America/New_York";
> SOGoMailDomain = hprs.local;
> SOGoPasswordChangeEnabled = NO;
> SOGoLanguage = English;
>
> # Mail Preferences
>
> SOGoAppointmentSendEmailNotifications = YES;
> SOGoACLsSendEMailNotifications = NO;
>
> # Database configuration
>
> SOGoProfileURL =
> "mysql://openchange:openchange@localhost/openchange/sogo_user_profile";
> OCSFolderInfoURL =
> "mysql://openchange:openchange@localhost/openchange/sogo_folder_info";
> OCSSessionsFolderURL =
> "mysql://openchange:openchange@localhost/openchange/sogo_sessions_folder";
>
> # Common IMAP and SMTP configuration
>
> SOGoForceExternalLoginWithEmail = YES;
>
> # IMAP server configuration
>
> NGImap4ConnectionStringSeparator = ".";
> SOGoIMAPAclConformsToIMAPExt = NO;
> SOGoMailSpoolPath = /var/spool/sogo;
> SOGoIMAPServer = 127.0.0.1:143;
> SOGoSieveServer = sieve://127.0.0.1:4190;
> SOGoDraftsFolderName = Drafts;
> SOGoSentFolderName = Sent;
> SOGoTrashFolderName = Trash;
> SOGoMailShowSubscribedFoldersOnly = NO;
>
> # SMTP server configuration
>
> SOGoMailingMechanism = smtp;
> SOGoSMTPServer = 127.0.0.1:25;
>
> # Sieve configuration
>
> SOGoVacationEnabled = YES;
> SOGoSieveScriptsEnabled = YES;
> SOGoForwardEnabled = YES;
>
> # LDAP authentication
> # We are going to use Samba4 Active Directory directly.
>
> SOGoUserSources = (
> {
> id = sambaLogin;
> displayName = "SambaLogin";
> canAuthenticate = YES;
> type = ldap;
> CNFieldName = cn;
> IDFieldName = cn;
> UIDFieldName = sAMAccountName;
> hostname = "ldap://127.0.0.1";;
> baseDN = "CN=Users,DC=hprs,DC=local";
> bindDN = "CN=sogo,CN=Users,DC=hprs,DC=local";
> bindPassword = "NuzIgtKovyva04in8l02";
> bindFields = (sAMAccountName);
> },
> {
> id = sambaShared;
> displayName = "Shared Addressbook";
> canAuthenticate = NO;
> isAddressBook = YES;
> type = ldap;
> CNFieldName = cn;
> IDFieldName = mail;
> UIDFieldName = mail;
> hostname = "ldap://127.0.0.1";;
> baseDN = "DC=hprs,DC=local";
> bindDN = "CN=sogo,CN=Users,DC=hprs,DC=local";
> bindPassword = "NuzIgtKovyva04in8l02";
> filter = "((NOT isCriticalSystemObject='TRUE') AND (mail=\'*\') AND
> (NOT objectClass=contact))";
> },
> {
> id = sambaContacts;
> displayName = "Shared Contacts";
> canAuthenticate = NO;
> isAddressBook = YES;
> type = ldap;
> CNFieldName = cn;
> IDFieldName = mail;
> UIDFieldName = mail;
> hostname = "ldap://127.0.0.1";;
> baseDN = "DC=hprs,DC=local";
> bindDN = "CN=sogo,CN=Users,DC=hprs,DC=local";
> bindPassword = "NuzIgtKovyva04in8l02";
> filter = "((((objectClass=person) AND (objectClass=contact) AND
> ((uidNumber>=2000) OR (mail='*')))
> AND (NOT isCriticalSystemObject='TRUE') AND (NOT
> showInAdvancedViewOnly='TRUE') AND (NOT uid=Guest))
> OR (((objectClass=group) AND (gidNumber>=2000)) AND (NOT
> isCriticalSystemObject='TRUE') AND (NOT showInAdvancedViewOnly='TRUE')))";
> mapping = {
> displayname = ("cn");
> };
> }
> );
>
> # Debug options
>
> GCSFolderDebugEnabled = NO;
> GCSFolderStoreDebugEnabled = NO;
> LDAPDebugEnabled = NO;
> MySQL4DebugEnabled = NO;
> NGImap4DisableIMAP4Pooling = NO;
> OCSFolderManagerSQLDebugEnabled = NO;
> PGDebugEnabled = NO;
> SOGoDebugRequests = NO;
> SOGoMailKeepDraftsAfterSend = NO;
> SOGoUIxDebugEnabled = NO;
> SoDebugObjectTraversal = NO;
> SoSecurityManagerDebugEnabled = NO;
> WODontZipResponse = NO;
> WODebugZipResponse = NO;
>


--
Jens Erat

[phone]: tel:+49-151-56961126
[mail]:
mailto:
[jabber]:
xmpp:
[web]: http://www.jenserat.de

OpenPGP: 0D69 E11F 12BD BA07 7B37 26AB 4E1F 799A A4FF 2279

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.18.

Top of page