General discussion on installation and configuration of SOGo

Text archives Help


Re: [SOGo] SOGo It's possible to mix Sogousersource with ldap and mysql


Chronological Thread 
  • From: Rodolfo José Castellanos J. < >
  • To: " " < >
  • Subject: Re: [SOGo] SOGo It's possible to mix Sogousersource with ldap and mysql
  • Date: Fri, 24 Apr 2015 13:22:59 +0000 (UTC)

Yes, it's possible. In fact, I have a working configuration using an LDAP connection and a PostgreSQL connection. The SOGo user manual has details about it and the relevant fragment within my /etc/sogo/sogo.conf is this:

  domains = {
    ldapDomain = {
      SOGoMailDomain = "some.domain.com";
      SOGoUserSources = (
        {
          id = "ldapDomainId";
          type = "ldap";
          CNFieldName = "cn";
          UIDFieldName = "uid";
          IDFieldName = "mail";
          bindFields = ("uid", "mail");
          baseDN = "dc=some,dc=domain,dc=com";
          bindDN = "cn=someuser,dc=some,dc=domain,dc=com";
          bindPassword = "some-difficult-password";
          canAuthenticate = YES;
          IMAPLoginFieldName = "mail";
          displayName = "Shared Directory AddressBook";
          hostname = "ldap://someserver.some.domain.com:390";
          isAddressBook = YES;
        }
      );
    };
    sqlDomains = {
      SOGoUserSources = (
        {
          id = "sqlDomainsId";
          type = "sql";
          viewURL = "postgresql://some-read-only-user: :5432/somedatabase/some-table-or-view";
          canAuthenticate = YES;
          isAddressBook = YES;
          displayName = "Shared Database AddressBook";
          userPasswordAlgorithm = "SHA";
        }
      );
    };
  };

Obviously, you'll have to adapt it to your environment and to use MySQL instead of PostgreSQL.

Best regards.



El Viernes, 24 de abril, 2015 7:33:39, " " < > escribió:


Is it possible to mix in SogoUserSource  a connection  to ldap and a
connection to mysql  just for a external user that does not have ldap
account ??
--

https://inverse.ca/sogo/lists





Archive powered by MHonArc 2.6.18.

Top of page