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";
}
);
If I comment LDAP source, SQL source works as expected.
If I comment SQL source, LDAP works as expected.
If I uncomment all (activate both sources), only the second source works.
So if I put SQL source in second place (from the top of the conf file)(like
above), only SQL works and vice-versa.
Users are in the same domain but with different sources. Some are in the
LDAP directory (AD), some in a SQL database.
How can I make the two sources working together ?
Thanks
Nicolas
--
[email protected]
https://inverse.ca/sogo/lists