Works perfectly.

Merci beaucoup Francis ;)

Nicolas

Le 15/07/2015 15:12, Francis Lachapelle a écrit :
Hello Nicolas

On Jul 15, 2015, at 4:45 AM, user sogo <[email protected]> wrote:

Hello,
I'd like to use two users sources : one SQL and one LDAP (AD).
To do this, I've set up in sogo.conf :
SOGoUserSources =
(
    {
        type = ldap;
        CNFieldName = cn;
        IDFieldName = cn;
        UIDFieldName = sAMAccountName;
        baseDN = "cn=Users,dc=domain,dc=lan";
        bindDN = "cn=binder,cn=Users,dc=domain,dc=lan";
        bindPassword = binder_passwd;
        bindFields = (mail);
        canAuthenticate = YES;
        displayName = "LDAP users";
        hostname = 192.168.xxx.xxx;
        id = directoryldap;
        isAddressBook = YES;
        port = 389;
        MailFieldNames = (mail);
        IMAPLoginFieldName = mail;
    }
);
SOGoUserSources =
(
    {
        type = sql;
        id = directorysql;
        viewURL = "mysql://sogo:[email protected]:3306/vmail/users";
        canAuthenticate = YES;
        userPasswordAlgorithm = ssha;
        isAddressBook = YES;
        displayName = "SQL users";
    }
);
SOGoUserSources is an array, so you must group the two definitions:

SOGoUserSources =
(
   {
      type = ldap;
      ..

   },
   {
      type = sql;
      ..
   }
);


Reply via email to