dupondje / PHP-Push-2

Z-Push Fork With CalDAV/LDAP Support
GNU Affero General Public License v3.0
67 stars 24 forks source link

Combine of CardDAV and LDAP backend for GAL #49

Closed user678 closed 12 years ago

user678 commented 12 years ago

Hi,

I gues that in: PHP-Push-2 / backend / combined / config.php

in section:

        'folderbackend' => array(
            SYNC_FOLDER_TYPE_INBOX => 'i',
            SYNC_FOLDER_TYPE_DRAFTS => 'i',
            SYNC_FOLDER_TYPE_WASTEBASKET => 'i',
            SYNC_FOLDER_TYPE_SENTMAIL => 'i',
            SYNC_FOLDER_TYPE_OUTBOX => 'i',
            SYNC_FOLDER_TYPE_TASK => 'z',
            SYNC_FOLDER_TYPE_APPOINTMENT => 'z',
            SYNC_FOLDER_TYPE_CONTACT => 'z',
            SYNC_FOLDER_TYPE_NOTE => 'z',
            SYNC_FOLDER_TYPE_JOURNAL => 'z',
            SYNC_FOLDER_TYPE_OTHER => 'i',
            SYNC_FOLDER_TYPE_USER_MAIL => 'i',
            SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'z',
            SYNC_FOLDER_TYPE_USER_CONTACT => 'z',
            SYNC_FOLDER_TYPE_USER_TASK => 'z',
            SYNC_FOLDER_TYPE_USER_JOURNAL => 'z',
            SYNC_FOLDER_TYPE_USER_NOTE => 'z',
            SYNC_FOLDER_TYPE_UNKNOWN => 'z',
        ),

is missing 'L" character for

            'l' => array(
                'name' => 'BackendLDAP',
                'config' => self::$BackendLDAP_config,
            ),

Could you help to suggest how I should add it in addition to 'Z', but not instead of 'Z'?

Regards, Maxim

dupondje commented 12 years ago

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!

user678 commented 12 years ago

@Could you help to suggest how I should add it in addition to 'Z', but not instead of 'Z'?@

I need to use BackendLDAP together with BackendCardDAV. BackendLDAP for Global Address Book and BackendCardDAV for user address book.