matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.89k stars 2.65k forks source link

Plugin for LDAP Authentication #734

Closed anonymous-matomo-user closed 10 years ago

anonymous-matomo-user commented 15 years ago

This plugin syncs Piwik's user and access table against LDAP and performs Authentication via LDAP.

For installation instructions, see the README file in the tarball.

Install the plugin in one click from the Marketplace: LoginLdap on the marketplace

Keywords: ldap, auth, login, third-party-plugin

anonymous-matomo-user commented 11 years ago

Hi; I seem to be having a problem related to the LoginLdap plugin when used with the new Overlay feature. When viewing an Overlay I get the error message "Error: Authentication failed". When LoginLdap is disabled and the default Login plugin is used, it works fine. I have also tried granting read access to all reports to user "Anonymous", but I still get the same problem. All the other features in Piwik seem to work great. I have checked and there are no PHP errors or Apache errors that I can see. Anybody have any ideas that can point me in the right direction, or is there a fix available?

Thanks Sean

anonymous-matomo-user commented 11 years ago

Anyone have any ideas? This is pretty critical for us.

Replying to sean:

Hi; I seem to be having a problem related to the LoginLdap plugin when used with the new Overlay feature. When viewing an Overlay I get the error message "Error: Authentication failed". When LoginLdap is disabled and the default Login plugin is used, it works fine. I have also tried granting read access to all reports to user "Anonymous", but I still get the same problem. All the other features in Piwik seem to work great. I have checked and there are no PHP errors or Apache errors that I can see. Anybody have any ideas that can point me in the right direction, or is there a fix available?

Thanks Sean

mattab commented 11 years ago

Please get in touch with: http://piwik.org/consulting/#contact-consultant if you need professional support.

anonymous-matomo-user commented 11 years ago

Hi Matt; and thanks. I don't think it will be necessary now. I was able to fix the error with the LdapLogin plugin. I notice the overlay plugin was using Cookie Authentication - So I just added a few lines to the LdapLogin.php page - mirroring what is in the latest login.php file of the default Login plugin.

    Zend_Registry::set('auth', $auth);

$allowCookieAuthentication = $notification->getNotificationInfo();

    $action = Piwik::getAction();
    if (Piwik::getModule() === 'API'
        && (empty($action) || $action == 'index')
        && $allowCookieAuthentication !== true)
    {
        return;

I will upload the working file here so others may use it. thanks sean

mattab commented 11 years ago

Thanks for the follow up that's useful!

anonymous-matomo-user commented 11 years ago

+1 following

anonymous-matomo-user commented 11 years ago

LoginLdap-1.3.3 released @ http://code.google.com/p/piwik-ldap/

Fixed:

anonymous-matomo-user commented 10 years ago

Hey! Is there any chance we will get this awesome plugin for piwik 2.0? I really don't wanna bother you the day after the release, but I need to know this for an installation that I currently have to set up! THx!

anonymous-matomo-user commented 10 years ago

This page is not monitored actively, so please use https://github.com/tehnotronic/PiwikLdap/issues in the future, if you have any issues. We also had Google Code page, but Github is now our main site with latest info. Also try the new and awesome LoginLdap for Piwik 2.x at the Marketplace!

mattab commented 10 years ago

Congratulations on making this plugin available on the marketplace so quickly.

LoginLdap on the marketplace

Wishing you to enjoy Piwik with LDAP, Happy new year 2014 to all!

mattab commented 10 years ago

The plugin LDAP has been moved to github and published on the marketplace. We have fixed some issues in Piwik core to make Ldap work fine. We will keep working with LoginLdap plugin developers to make it work well in the future. Keep up the good work, and enjoy Piwik 2.0 with Ldap!