Roundcube Community Forum

 

Global Address Book Read/Write Permissions

Started by Auguss, October 25, 2013, 12:00:13 PM

Previous topic - Next topic

Auguss

I am having trouble with correctly setting the write permissions to only one account IAW the readme. Here is my current config.inc.php. Can someone tell me what I am doing wrong to prevent others from writing to it?
<?php

/**
 * GlobalAddressbook configuration file
 */

// the name of the dummy user which holds the global address book, if the user does not exist it will be created
// the name can contain the following macros that will be expanded as follows:
//      %d is replaced with the domain part of the username (if the username is an email address or default mail domain if not)
//      %h is replaced with the imap host (from the session info)
// eg. to create one global address book per domain: global_addressbook@%d
$config['globaladdressbook_user'] = 'webmaster@%d';

// make global address book read only
$config['globaladdressbook_readonly'] = true;

// allow groups in global address book
$config['globaladdressbook_groups'] = false;

// global address book admin user
// admin user(s) can always add/edit/delete entries, overrides readonly
// either a single username, an array of usernames, or a regular expression, see README for more info
$config['globaladdressbook_admin'] = array('webmaster@*****.org');

// show addresses from the global address book in the auto complete menu when composing an email
$config['globaladdressbook_autocomplete'] = true;

// check globaladdressbook for known senders when displaying remote inline images
$config['globaladdressbook_check_safe'] = true;

?>

rosali

Are you using Roundcube 1.0-git? If you are using stable branch (0.9.x) then you have to use $rcmail_config instead of $config in the plugin configuration.
Regards,
Rosali

Auguss

#2
I am using stable 0.9.x. So all plugins need that change in the config.php file for them to work correctly with stable 0.9.x version path?

The address book now works correctly with appropriate read/write permissions.

SKaero

Actually you just downloaded the wrong version of the plugin, you needed the version for 0.9.x.