-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin for LDAP Authentication #734
Comments
Hello, I don't understand what I have to (and what I can) write in the ldap.json file. Can you give me more information about this file ? |
In the example below, these groups and memberships are assumed:
Users and groups must be specified with their distinguished name (dn). The entry for a user or group must contain Key-Value pairs: site name->permission, permission may assume "view" or "admin" In this example, the users end up with these permissions:
|
Thanks. For your answer, and for this plugin too. Your plugin don't work for me for the moment. I think it's because the filter (function Auth.doLdapSearch) is based on "cn" attribute. But in our organisation the unique identifier in LDAP is an attribute named "uid". I have to change the filter and test. PS: Is this ticket the good place to give you feedback, report bug, ask question, ... ? PPS: I tried to install Wordpress MU too. And I think you can see about this plugin, it may be interesting : PPPS: Sorry for my english if it's not good ... I'm french. :-) |
Be warned, this now depends on #828 |
It don't understand exactly why you warn me. But it's not a problem. I will always need to have a LDAP authentication with Piwik. So I will use a Piwik version with a functional LDAP plugin. For the filter in Auth.doLdapSearch() it's OK if I change "cn" by "uid". I will try to add a property in the config file and send you a patch. PS: FIY: I just have to check the json file. The syntax is good but the permissions are not added (I think my "dn" are not correct). |
The attribute designating the userid and the Objectclass designating groups can be configured now, check the config.ini example.
|
You might want to open a ticket proposing login-ldap-plugin.patch (or a variant thereof) be applied to Piwik core. I would suggest you move the sample configuration files to the LdapLogin folder, and re-package it so it can be extracted into the plugins folder. |
Hello, After some weeks when I didn't use Piwik, I try it again and I try to use the LdapLogin plugin. To search the LDAP groups, I had to change attribute "member" by "uniqueMember" function authenticate()// If the parent can't authenticate the user, let LDAP try.Even if the parent authenticate the user, we have to connect to LDAP for updating user's informations (ex: email) In this case, we don't need to play with $session->done, $this->login, $result, ... It's complicated to understand this code (and so it's complicated to participate in this plugin). It's simplier to have a variable or a function to know if the user is authenticated and if it's local or LDAP user. protected function assignAccess()Before the loop : foreach($this->groups as $group) I hope all of these points can help you to improve your plugin. (it's already a great plugin) Regards, |
BTW there's a feature request in #1723 for LDAP tracking. |
Played quite alot with this plugin. Just for clarification:
|
For Piwik in the Enterprise this functionality really needs to be added to the core to allow integration with Active Directory as-well. |
Robert: I can make the change to Login/Login.php in core. However, it looks like Ldap/Controller.php overrides a number of methods in Login/Controller.php, so am I correct in assuming the patch to plugins/Login/Controller.php is no longer needed? |
Is there any chance to get a version of the plugin working with the current 1.4 of piwik (out of the box)? Thanks for any hints (or .tar.gz-archives ,-)! |
I am not able to download plugin. Can anyone help to download the plugin |
Hi everybody, as we also didn't manage to get this plugin working we developed a new Piwik LDAP plugin based on this one. Here's the Content of the README-file also included in the .zip file:
Any questions, wishes or suggestions are welcome! |
Attachment: working ldap plugin for piwik |
gigatec, thank you for the nice plugin submission. When are users copied to the piwik user table? Any other special changes to the way users are handled / created / modified ? |
after clicking on the "Load User from LDAP" button the plugin is searching for the username in the directory. Regards |
Attachment: Piwik LDAP plugin screenshot |
This plugin is not working for me in the latest (1.6) version. I have unzipped into the plugins folder but when I deactivate the exiting login plugin I get an error: So even when I directly amend the config file to use the LoginLdap plugin it still does not work. |
Is the error you get when you do activate LoginLdap. |
I am having the same problem as Jonny. If I try to deactivate the normal "Login" plugin then I can't change any settings in Piwik even though I'm the superuser |
Hi guys, unfortunatly the initial setup is not working with piwik 1.6. If you don't wont to install 1.5 and than upgrade to 1.6 you can configure piwik manually by putting this in your config.inc.php [LoginLdap] We will fix the problem with our new release in january. Cheers, |
|
Hi, Version 1.0.0 is not working for me. There was no ldap_bind while searching for user and also while logging in, so I just got errors. After fixing this and logging in, authenticateLDAP() function was called more than 10 times per request with no/false password and my AD locked automatically my user account. So I added an if statent to check if we have username and password before we make any LDAP searches. After that everything seems to be working. You can find my fixed Controller.php and Auth.php here: http://aivo.ee/piwik_ldap_plugin_fix_201202.zip The fix itself (maybe not the best solution but working for me): Controller.php - find line 147 "$search = ldap_search"
Auth.php - find line 151 "$success = false;"
Find from the end of the file line containing:
Before that, close the added "if" statement with curly bracket "}" Auth.php - near line 161 find "$search = ldap_search"
Regards, Aivo |
Attachment: gigatec LoginLdap 1.2.0 |
Hi Aivo, thanks for your contribution! Meanwhile we also developed a new version of the Piwik LDAP Plugin with ActiveDirectory support. We just had not enough time to test and release it untill now. Version 1.0.0 was actually not compatible with ActiveDirectory untill your fix. The new version (1.2.0) should be fully compatible with ActiveDirectory. We also restructed the code a little bit and added some more options to the settings menu. I attached the new version to this ticket. Please let us know whether the new solution is working for you if you will integrate it in your Piwik. Cheers, |
With this new release (LoginLdap 1.20) the install problem for Piwik 1.6 and Piwik 1.7 is also fixed. |
@gigatec thank you for the update, it is very appreciated! A lot of Piwik users actually use this plugin and will benefit from your update. Do you know if there is any "feature request" pending? If so, would you mind listing here in a comment, the list of "Known limitations" and "feature requests" ? I would like to have an overview of the status of this plugin. Thanks!! |
After upgrading to Piwik 1.9 the following error message is displayed on the ldap page:
|
(In [7300]) Refs #734 Fixing |
Replying to matt:
Thanks. This seems to fix this issue. The error message has disappeared. |
Replying to matt:
Hi Matt, Some more info on that. I just updated Piwik to 1.9.1 (glad to see that this error on the ldap page has gone) and were using what seems to be the actual LDAP Plugin version 1.3.0 (http://code.google.com/p/piwik-ldap/downloads/list). Piwik Mobile App (version 1.9.2) is running on an Samsung Galaxy S3. See Screenshot for error message... [http://postimage.org/image/lmgut0gw5/] |
Hi guys, would be really cool to be able to login via API / AuthToken. Is it possible that you add this feature to the LDAP plugin? Otherwise Piwik Mobile users can't log in. This is going to be more important as Mobile will be the future :) |
Replying to jnk:
Hi There is an error. Please report the message (Piwik 1.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Notice: Undefined index: enable_trusted_host_check in /www/www-live/other-sites/piwik/core/Url.php on line 465 Backtrace --> #0 Piwik_ErrorHandler(...) called at [/www/www-live/other-sites/piwik/core/Url.php:465] There is an error. Please report the message (Piwik 1.9.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Notice: Undefined index: password in /www/www-live/other-sites/piwik/plugins/LoginLdap/LoginLdap.php on line 116 Backtrace --> #0 Piwik_ErrorHandler(...) called at [/www/www-live/other-sites/piwik/plugins/LoginLdap/LoginLdap.php:116] |
I disabled the LoginLdap plugin, and restarted the server, activated the LoginLdap plugin, then deactivated the Login plugin, and it worked fine now..... |
There's an encoding error when logging in: There is an error. Please report the message (Piwik 1.9.2) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: json_encode() href='function.json-encode'>function.json-encode</a>: Invalid UTF-8 sequence in argument in [PATH]/htdocs/plugins/LoginLdap/GigatecLdap.php on line 44 when printing the $result object, I think it might stumble over either: or: (multiple occurrences of the latter) LDAP is configured for a MS Active Directory (small business server 2003) For now I have disabled the log-message and it seems to work. |
Hi; Thanks |
Anyone have any ideas? This is pretty critical for us. Replying to sean:
|
Please get in touch with: http://piwik.org/consulting/#contact-consultant if you need professional support. |
Hi Matt; and thanks. I don't think it will be necessary now. I was able to fix the error with the LdapLogin plugin.
$allowCookieAuthentication = $notification->getNotificationInfo();
I will upload the working file here so others may use it. |
Attachment: Correction added so Page Overlay feature works |
Thanks for the follow up that's useful! |
+1 following |
LoginLdap-1.3.3 released @ http://code.google.com/p/piwik-ldap/ Fixed:
|
Hey! Is there any chance we will get this awesome plugin for piwik 2.0? |
This page is not monitored actively, so please use https://github.com/tehnotronic/PiwikLdap/issues in the future, if you have any issues. |
Congratulations on making this plugin available on the marketplace so quickly. Wishing you to enjoy Piwik with LDAP, Happy new year 2014 to all! |
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! |
Fixes #734, fix broken footer toggling when widgets are/were maximized by forcing footer to be expanded when widgets are maximized.
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
The text was updated successfully, but these errors were encountered: