Re: [Kolab-devel] Kolab 3.1 dev role not working

Manel Gimeno Zaragozá <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <[email protected]>
Hello,

I think I've found the problem.

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.

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.

Now I have the following configuration:
[/etc/roundcubemail ]$ vi config.inc.php
$config['plugins'] = array(
            'acl',
            'archive',
            //'calendar',
            'jqueryui',
            //'kolab_activesync',
            //'kolab_addressbook',
            'kolab_auth',
            'kolab_config',
            'kolab_folders',
            'libkolab',
            'libcalendaring',
            'managesieve',
            'newmail_notifier',
            //'odfviewer',
            'password',
            //'redundant_attachments',
            //'tasklist',
            'threading_as_default',
            // contextmenu must be after kolab_addressbook (#444)
            'contextmenu',
        );

[/etc/roundcubemail ]$ vi kolab_auth.inc.php
$config['kolab_auth_role_plugins'] = array(
        "cn=file-user,dc=marvel,dc=ddol,dc=es" => array(
                'kolab_files',
                'kolab_activesync',
                'odfviewer',
                'pdfviewer',
                'redundant_attachments',
        ),
        "cn=calendar-user,dc=marvel,dc=ddol,dc=es" => array(
                'calendar',
        ),
        "cn=task-user,dc=marvel,dc=ddol,dc=es" => array(
                'tasklist',
        ),
    );

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.

I don't know If some of you have a better configuration or some advice about "mandatory" plugins I have to enabled/disabled.

Regards.

Manel

> From: [email protected]
> To: [email protected]
> Date: Tue, 15 Oct 2013 23:13:24 +0200
> CC: [email protected]
> Subject: Re: [Kolab-devel] Kolab 3.1 dev role not working
> 
> On Thursday, October 10, 2013 12:52:06 PM Manel Gimeno Zaragozá wrote:
> > > > I'm trying to implement different user roles and enable some
> > > > plugins
> > > > depending on the role assigned, in previous kolab 3.1 dev packages
> > > > was working correctly but with the new package
> > > > roundcubemail-1.0-0.9.dev20130809.git328876.el6.kolab_3.1.noarch
> > > > It is not working.
> > > 
> > > There should be a roundcubemail-1.0-0.11 and a
> > > roundcubemail-plugins-kolab-3.1.4.
> > 
> > I've update my packages to roundcubemail-1.0-0.11 and
> > roundcubemail-plugins-kolab-3.1.4 and this is my config now:
> > 
> > edit and comment $config['plugins'] = array in config.inc.php fileedit
> > and add the following lines in kolab_auth.inc.php
> > $rcmail_config['kolab_auth_role_plugins'] = array(
> >         "cn=professional-user,dc=test,dc=ddol,dc=es" => array(
> >                 'kolab_files',
> >                 'calendar',
> >                 'tasklist',
> >                 'archive',
> >                 'kolab_activesync',
> >                 'odfviewer',
> >                 'pdfviewer',
> >         ),
> >           "cn=regular-user,dc=test,dc=ddol,dc=es" => array(
> >                 'calendar',
> >                 'tasklist',
> >         ),
> >           "cn=file-user,dc=test,dc=ddol,dc=es" => array(
> >                 'kolab_files',
> >                 'odfviewer',
> >                 'pdfviewer',
> >         ),
> >           "cn=task-user,dc=test,dc=ddol,dc=es" => array(
> >                 'tasklist',
> >           ),
> >     );
> > 
> > The plugins are still not activated by role. Any aditional change?
> > 
> 
> I'm at a loss trying to troubleshoot your particular environment's 
> settings and undesired effects, so we have to dig deeper.
> 
> Please note that in roundcube 1.0, configuration has moved from being an 
> $rcmail_config array to being a $config array. I've been told you cannot 
> mix and match $config/$rcmail_config, so please make sure these are 
> consistent for your deployment across all configuration files in 
> /etc/roundcubemail/.
> 
> At your convenience, please also consider inserting debug log statements 
> in /usr/share/roundcubemail/plugins/kolab_auth/kolab_auth.php and 
> /usr/share/roundcubemail/plugins/kolab_auth/kolab_auth_ldap.php 
> (function parse_vars comes to mind), in order to be able to provide more 
> information about what is going on between the user logging in and the 
> results being parsed in a particular way.
> 
> Kind regards,
> 
> Jeroen van Meeuwen
> 
> -- 
> Systems Architect, Kolab Systems AG
> 
> e: vanmeeuwen at kolabsys.com
> m: +44 74 2516 3817
> w: http://www.kolabsys.com
> 
> pgp: 9342 BF08
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel

_______________________________________________
devel mailing list
[email protected]
https://lists.kolab.org/mailman/listinfo/devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.