Author Topic: Global Address Book Read/Write Permissions  (Read 13011 times)

Offline Auguss

  • Newbie
  • *
  • Posts: 3
Global Address Book Read/Write Permissions
« on: October 25, 2013, 12:00:13 PM »
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?
Code: [Select]
<?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;

?>
« Last Edit: October 26, 2013, 03:19:31 PM by Auguss »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: Global Address Book Read/Write Permissions
« Reply #1 on: October 26, 2013, 12:58:35 AM »
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
__________________
MyRoundcube Project (commercial)

Offline Auguss

  • Newbie
  • *
  • Posts: 3
Re: Global Address Book Read/Write Permissions
« Reply #2 on: October 26, 2013, 03:10:37 PM »
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.
« Last Edit: October 26, 2013, 03:18:38 PM by Auguss »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Global Address Book Read/Write Permissions
« Reply #3 on: October 26, 2013, 05:13:07 PM »
Actually you just downloaded the wrong version of the plugin, you needed the version for 0.9.x.