PHP-Push-2
PHP-Push-2 copied to clipboard
Combine of CardDAV and LDAP backend together
It's continuation of https://github.com/dupondje/PHP-Push-2/issues/49
You wrote: "If you want to use BackendLDAP (l) for SYNC_FOLDER_TYPE_CONTACT for example, then you use: SYNC_FOLDER_TYPE_CONTACT => 'l'
Its easy as that!"
When I use together:
SYNC_FOLDER_TYPE_CONTACT => 'l',
SYNC_FOLDER_TYPE_USER_CONTACT => 'v',
'l' => array('name' => 'BackendLDAP', ...
'v' => array( 'name' => 'BackendCardDAV', ...
BackendCardDAV does not return contacts (I've got only LDAP). I can send log file to you...
Any suggestions?
Regards, Maxim
I believe it's not possible to use 2 different backends for contacts. At least I did not check it... you could send the log for more info.
In CardDav it's possible to create a addressbook and give each user public access (global address in this principal), and each user could have their own addressbook with their personal addresses.
But, and it's a big "but"... since I don't need this at the moment I fixed the backendCarDav to only get 1 principal.
In the log file when I use following or reverse config
SYNC_FOLDER_TYPE_CONTACT => 'l',
SYNC_FOLDER_TYPE_USER_CONTACT => 'v',
or SYNC_FOLDER_TYPE_CONTACT => 'v', SYNC_FOLDER_TYPE_USER_CONTACT => 'l',
'l' => array('name' => 'BackendLDAP', ...
'v' => array( 'name' => 'BackendCardDAV', ...
z-push used only SYNC_FOLDER_TYPE_CONTACT backend.
Processing of 2 address books of CardDAV backend is the best solution, but CardDAV backend needs only one target folder. With the folder which contains 2 subfolders: GAL and user address book CardDAV backend does not work.