Hello Nicolas > On Jul 15, 2015, at 4:45 AM, user sogo <users...@gmail.com> 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:sogo_pas...@192.168.xxx.xxx: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; .. } ); -- users@sogo.nu https://inverse.ca/sogo/lists