[horde] Sync only personal address book

Jan Schneider jan at horde.org
Fri Aug 6 17:31:03 UTC 2010


Zitat von Alexa Rodriguez <avrodriguez at jusbaires.gov.ar>:

>
> Jan Schneider <jan at horde.org> escribió:
>
>> Zitat von Alexa Rodriguez <avrodriguez at jusbaires.gov.ar>:
>>
>>> Hi,
>>>
>>> My users have two address books by defect:
>>>
>>> • Default => Personal
>>> • Company's Name => contains data company's people
>>>
>>> For safety, I need that users can only to sync their address books.
>>>
>>> My question is: it's possible fix this in the turba's configuration?
>>> if so which files should be modified?
>>
>> Lock the user preference for sync address books in turba/config/prefs.php.
>>
>> Jan.
>
> Thanks Jan.
>
> To confirm, this settings are correct?
>
> // Address books use for synchronization
> $_prefs['sync_books'] = array(
>     'value' => 'a:0:{}',
>     'locked' => true,
>     'shared' => false,
>     'type' => 'multienum',
>     'desc' => _("Select the address books that should be used for  
> synchronization with external devices:"),

This is the correct preference, but probably not the correct value.  
You want to populate it with the user's personal address book. If the  
personal address books are not using shares ('use_shares' => false in  
config/sources.php), you want to specify the source name, e.g.  
'localsql'. If you *are* using shares, you need to fill this  
preference dynamically through a preference hook.
Please note that this preference is a serialized PHP array.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list