[turba] Shared Address Books (Multi-User)

Jorge Manuel B. S. Vicetto jmbsvicetto at esenfah.pt
Wed Oct 29 20:24:58 PST 2003


Hi!

First let me congratulate everyone working on Horde and all its projects. It's
a great project!


I've got a "silly" question about Turba, but I haven't been able to figure it
out. I know that Turba allows individual lists and shared lists. My question
is whether it's possible to create a shared list to some users, but not all?
If so, how can I do it?

I've added the following config to sources.php :

------------------

/**
 * The IT shared Address Book
 *
 * This address book is shared by the IT users
**/
$cfgSources['itsql'] = array(
    'title' => _("IT Addressbook"),
    'type' => 'sql',
    'params' => array(
        'phptype' => 'mysql',
        'hostspec' => 'localhost',
        'username' => 'user',
        'password' => 'password',
        'database' => 'db',
        'table' => 'turba_it_addbook',
        'charset' => 'iso-8859-1'
    ),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        '__type' => 'object_type',
        '__members' => 'object_members',
        'name' => 'object_name',
        'email' => 'object_email',
        'alias' => 'object_alias',
        'homeAddress' => 'object_homeaddress',
        'workAddress' => 'object_workaddress',
        'homePhone' => 'object_homephone',
        'workPhone' => 'object_workphone',
        'cellPhone' => 'object_cellphone',
        'fax' => 'object_fax',
        'title' => 'object_title',
        'company' => 'object_company',
        'notes' => 'object_notes',
        'pgpPublicKey' => 'object_pgppublickey',
        'smimePublicKey' => 'object_smimepublickey',
        'freebusyUrl' => 'object_freebusyurl'
    ),
    'search' => array(
        'name',
        'email'
    ),
    'strict' => array(
        'object_id'
    ),
    'public' => false,
    'readonly' => true,
    'admin' => array('userA', 'userB'),
    'export' => true
);

------------------

I've created the table in MySQL and everything works fine. I've got a shared
address book for all users that works perfectly.
User A and B are capable of creating entries in the address book, but each sees
only the entries they've created. If I change 'public' to true, then all users
can see the entries in the address book, an undesirable "side-effect", but both
users are capable of editing or deleting the entries. Isn't it possible to say
that users A and B are the only users that have access to this address book?
Finally, can we use groups instead of users to grant access?


I didn't find this information on turba/config/sources.php.dist and I've picked
the hordedoc target from CVS, but wasn't able to generate the docs. I think
that the files common.dsl and html-common.dsl may have some missing or wrong
fields, because jade complains a lot about their format and that it can't read
"./" because it's a directory. Sorry, but I don't know anything about DocBook,
Tex or Jade. :-(

Thanks in advance for reading this.
Bye and keep up the good work.

------------------------------------------

Jorge Manuel B. S. Vicetto
Network Manager and Systems Administrator
Angra do Heroísmo Nursing School (ESEnfAH)

------------------------------------------

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the turba mailing list