LoginLdap plugin for 2.0

Hi,

I ported old LoginLdap 1.3.5 plugin to Piwik 2.x. This is still alpha realease and may contain bugs, so please help to test (not in your live environment ofc.). I did get this one working against Active Directory service as LDAP and also as Kerberos login.

Well done on publishing your plugin! This is a superb example of what can be done with Piwik and we are grateful you took the time and effort to publish it! hope it will be successful :slight_smile:

Thank you matt!

I’ll try to solve issues myself, but I have a small question about disabling and enabling other plugins by a 3rd party plugin - can I do it?

I need to disable “Login” if “LoginLdap” is activated and enable it again, if LoginLdap disabled.

Following code doesn’t do anything and don’t print any errors:


use Piwik\Plugin\Manager;
...
Manager::getInstance()->deactivatePlugin("Login");

Full commit:
https://github.com/tehnotronic/PiwikLdap/commit/95ddd3d4801482f132a2ee1491bdadb3c6d29a71

Thanks for the report. I created & fixed in ticket Automatically activate/deactivate the 'Login' plugin when activating another Login plugin (eg. LdapLogin) · Issue #4529 · matomo-org/matomo · GitHub

To fix (or should I say “test the fix”) replace core/Plugin/Manager by this file: https://raw.github.com/piwik/piwik/master/core/Plugin/Manager.php

Hope it helps, feel free to repotr other suggestions and bugs in Piwik, we want to make the platform as good as possible!

Thanks matt!
Confirmed as fixed (tu)