<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>I think I've found the problem.<br><br>Following the old documentation I thought that the solution was comment all the array $config['plugins'], but doing this I was also commenting "kolab_auth" plugin.<br><br>In the previous roundcube version there was an array $mandatory_plugins, there we set the "default" plugins we always wanted enable, but in this version this configuration does not exists. So, when I commented all the array $config['plugins'] I was "disabling" kolab_auth.<br><br>Now I have the following configuration:<br>[/etc/roundcubemail ]$ vi config.inc.php<br>$config['plugins'] = array(<br>            'acl',<br>            'archive',<br>            //'calendar',<br>            'jqueryui',<br>            //'kolab_activesync',<br>            //'kolab_addressbook',<br>            'kolab_auth',<br>            'kolab_config',<br>            'kolab_folders',<br>            'libkolab',<br>            'libcalendaring',<br>            'managesieve',<br>            'newmail_notifier',<br>            //'odfviewer',<br>            'password',<br>            //'redundant_attachments',<br>            //'tasklist',<br>            'threading_as_default',<br>            // contextmenu must be after kolab_addressbook (#444)<br>            'contextmenu',<br>        );<br><br>[/etc/roundcubemail ]$ vi kolab_auth.inc.php<br>$config['kolab_auth_role_plugins'] = array(<br>        "cn=file-user,dc=marvel,dc=ddol,dc=es" => array(<br>                'kolab_files',<br>                'kolab_activesync',<br>                'odfviewer',<br>                'pdfviewer',<br>                'redundant_attachments',<br>        ),<br>        "cn=calendar-user,dc=marvel,dc=ddol,dc=es" => array(<br>                'calendar',<br>        ),<br>        "cn=task-user,dc=marvel,dc=ddol,dc=es" => array(<br>                'tasklist',<br>        ),<br>    );<br><br>and now the users have correctly enable the plugins based by role. Anyway, the only plugin I'm not able to disable/enable by plugin in addressbook.<br><br>I don't know If some of you have a better configuration or some advice about "mandatory" plugins I have to enabled/disabled.<br><br>Regards.<br><br>Manel<br><br><div>> From: vanmeeuwen@kolabsys.com<br>> To: devel@lists.kolab.org<br>> Date: Tue, 15 Oct 2013 23:13:24 +0200<br>> CC: magiza83@hotmail.com<br>> Subject: Re: [Kolab-devel] Kolab 3.1 dev role not working<br>> <br>> On Thursday, October 10, 2013 12:52:06 PM Manel Gimeno Zaragozá wrote:<br>> > > > I'm trying to implement different user roles and enable some<br>> > > > plugins<br>> > > > depending on the role assigned, in previous kolab 3.1 dev packages<br>> > > > was working correctly but with the new package<br>> > > > roundcubemail-1.0-0.9.dev20130809.git328876.el6.kolab_3.1.noarch<br>> > > > It is not working.<br>> > > <br>> > > There should be a roundcubemail-1.0-0.11 and a<br>> > > roundcubemail-plugins-kolab-3.1.4.<br>> > <br>> > I've update my packages to roundcubemail-1.0-0.11 and<br>> > roundcubemail-plugins-kolab-3.1.4 and this is my config now:<br>> > <br>> > edit and comment $config['plugins'] = array in config.inc.php fileedit<br>> > and add the following lines in kolab_auth.inc.php<br>> > $rcmail_config['kolab_auth_role_plugins'] = array(<br>> >         "cn=professional-user,dc=test,dc=ddol,dc=es" => array(<br>> >                 'kolab_files',<br>> >                 'calendar',<br>> >                 'tasklist',<br>> >                 'archive',<br>> >                 'kolab_activesync',<br>> >                 'odfviewer',<br>> >                 'pdfviewer',<br>> >         ),<br>> >           "cn=regular-user,dc=test,dc=ddol,dc=es" => array(<br>> >                 'calendar',<br>> >                 'tasklist',<br>> >         ),<br>> >           "cn=file-user,dc=test,dc=ddol,dc=es" => array(<br>> >                 'kolab_files',<br>> >                 'odfviewer',<br>> >                 'pdfviewer',<br>> >         ),<br>> >           "cn=task-user,dc=test,dc=ddol,dc=es" => array(<br>> >                 'tasklist',<br>> >           ),<br>> >     );<br>> > <br>> > The plugins are still not activated by role. Any aditional change?<br>> > <br>> <br>> I'm at a loss trying to troubleshoot your particular environment's <br>> settings and undesired effects, so we have to dig deeper.<br>> <br>> Please note that in roundcube 1.0, configuration has moved from being an <br>> $rcmail_config array to being a $config array. I've been told you cannot <br>> mix and match $config/$rcmail_config, so please make sure these are <br>> consistent for your deployment across all configuration files in <br>> /etc/roundcubemail/.<br>> <br>> At your convenience, please also consider inserting debug log statements <br>> in /usr/share/roundcubemail/plugins/kolab_auth/kolab_auth.php and <br>> /usr/share/roundcubemail/plugins/kolab_auth/kolab_auth_ldap.php <br>> (function parse_vars comes to mind), in order to be able to provide more <br>> information about what is going on between the user logging in and the <br>> results being parsed in a particular way.<br>> <br>> Kind regards,<br>> <br>> Jeroen van Meeuwen<br>> <br>> -- <br>> Systems Architect, Kolab Systems AG<br>> <br>> e: vanmeeuwen at kolabsys.com<br>> m: +44 74 2516 3817<br>> w: http://www.kolabsys.com<br>> <br>> pgp: 9342 BF08<br>> _______________________________________________<br>> devel mailing list<br>> devel@lists.kolab.org<br>> https://lists.kolab.org/mailman/listinfo/devel<br></div>                                         </div></body>
</html>