Hello,

I'd like to use 3 users sources in my SOGo.conf.

One LDAP is used to authenticate and as addressbook.
One SQL is used to authenticate and as addressbook. (commented out during tests, work as expected)
One LDAP is used as addressbook only.

My question is : is it possible to use both LDAP databases, one used to authenticate and addressbook and another as only addressbook ?

I can see the "auth/addressbook" LDAP source in the Contacts tab but not the "addressbook only" source in this tab.

I'm pretty sure of the source config in SOGo.conf :

SOGoUserSources = (
{
            type = ldap;
            CNFieldName = cn;
            IDFieldName = cn;
            UIDFieldName = sAMAccountName;
            baseDN = "ou=users,dc=domain,dc=lan";
            bindDN = "cn=bind_user,cn=Users,dc=domain,dc=lan";
            bindPassword = password;
            bindFields = (mail);
            canAuthenticate = YES;
            displayName = "Domain users";
            hostname = ldap://xxx.xxx.xxx.xxx:389;
            id = AD source;
            isAddressBook = YES;
            MailFieldNames = (mail);
            IMAPLoginFieldName = mail;
        },
        {
            type = ldap;
            CNFieldName = cn;
            IDFieldName = cn;
            UIDFieldName = cn;
            baseDN = "dc=domain,dc=contacts";
            bindDN = "cn=bind_user,dc=domain,dc=contacts";
            bindPassword = password;
            canAuthenticate = NO;
            displayName = "Open LDAP";
            hostname = ldap://xxx.xxx.xxx.xxx:389;
            id = "Open LDAP source";
            idAddressBook = YES;
        }
);

The connection to the second source (the one causes problems) is OK using those credentials with LDAPAdmin software

Any idea ?

Thanks

Reply via email to