WPMU Ldap Plugin 2.6 Released!

In conjunction with the new WPMU release and release numbering, i’m proud to announce the release of the WPMU Ldap 2.6 plugin!  This release does require WPMU 2.6 due to the utilization of some new hooks.

Download it now!

Important Upgrade Notice! – If you are upgrading from the previous 1.3 versions that did not have support for local user creation, its important that after the upgrade you login as the local administrator, and with the "Fix Ldap Meta" option on the plugin configuration page.  This will populate the ldap_login meta value for all accounts (except the local admin) so that existing users are able to login.

Changes:

  • Removed ugly hacks for the retrieve password form utilizing a new filter in the trunk.
  • Freshened up the look of the admin pages

As always, continue to visit the SourceForge project page for details, and to report bugs or add feature requests!

50 thoughts on “WPMU Ldap Plugin 2.6 Released!”

  1. It would be great to be able to allow blog creation based on groups. We want teachers to be able to have blogs but only allow students the ablility to contribute. Having the ablility to set groups for these would be awesome. Anyway, keep up the good work.

  2. Phillip is going to take a look at adding his group based auth code to the current trunk. Once that’s in place, we’ll see whats possible. The best bet for now its to make sure its added in SF to the feature request

  3. Great work thanks!!!!!

    Now I can upgrade as I could not get the 1.5 version to use the LDAP had to back up to version 1.3 on this new install of 2.6 the plugin is really appreciated. I second the motion above for group level authentication.

  4. I just tried to install this as SITE admin on wordpressMu 2.6, and… got this error…

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare wp_new_user_notification() (previously declared in /apps/wpmu/wp-includes/pluggable.php:1008) in /apps/wpmu/wp-content/plugins/ldap/lib/wpmu_ldap_admin.functions.php on line 414

    Any ideas?

  5. Harry, thanks for responding.
    I made an idiot mistake and put this in the global plugins directory, not in the mu-plugins directory.

    I think I got it working now!
    Thanks.

  6. It is important that you DO NOT follow what Helpful Harry posted. That WILL break other functionality in the plugin. The WPMU LDAP plugin is designed to only be run as an mu-plugin. It will not work as a regular plugin.

  7. I got back to playing with the plugin, and now I”m getting this error…

    ERROR: Account creation from LDAP failed

    I have it set to create accounts on login…

    Any ideas?

    Thank you!
    (and please tell me if theres a better place to get support).

  8. Check out the SF project – there is an email list setup and also the tracker.

    Does the email address of the admin account match that of the user your trying to login with? WordPress requires a unique email for every user. So if you entered your email address for the admin user, and are trying to login with your account it will toss that error.

  9. I just tried to run it with wpmu 2.6.2 and it failed.

    Fatal error: Cannot redeclare wp_new_user_notification() (previously declared in [snip]/htdocs/wp-includes/pluggable.php:1008) in [snip]/htdocs/wp-content/plugins/wpmu-ldap_2.6.0/ldap/lib/wpmu_ldap_admin.functions.php on line 414

    Any suggestions? Tried to find 2.6.1 somewhere, however the site only lists latest. I also tried SVN, and no change there too.

  10. I tried that first, however I don’t see any plugin to be activated when the folder is under mu-plugins to be activated.

    Any hint?

  11. Make sure the plugin is loaded in the mu-plugins folder. Then on the site admin area you will see the ldap config options.

  12. Should I be looking in the settings for each bog? I do see some ldap options, but it doesn’t seem to be working. I’ve used the wpDirAuth plugin with the same option and that seemed to work. I wanted to test this one out to compare.

  13. No. The ldap options are set on a global scale for all blogs. You will only see it in the site-admin area.

    I would highly recommend using the WPMU ldap plugin over the wpdirauth. wpdirauth was not designed directly for wpmu, so you may run into issues down the road.

    The WPMU ldap was designed just for the multi user version.

  14. Hmm. I’m not seeing the options. The plugin should be compatible with 2.6.3 right? Perhaps I might need to try it again with a fresh install.

  15. That’s just how the mu-plugins folder works. the core php file to be loaded in must be directly in that mu-plugins folder and not any sub folders.

  16. Very strange:
    I had the “White screen of death”,
    and when i tried to debug, i found out that in the file wpmu_ldap_adduser.functions.php, it couldn’t find the function “wpmuLdapSearchUser” until i added:
    “require ‘wpmu_ldap.functions.php'”.

    Did i do something worng?

  17. How did you go about obtaining and installing the plugin?

    You need to download the files to the mu-plugins folder. Make sure the ldap_auth.php file is in the root of mu-plugins, and not inside another subfolder.

    What version of wordpress are you running?

  18. We are trying to adapt the wpmu-ldap plugin’s “Add User” page to allow the addition of multiple users in one go, instead of just one user. Of course, being both a PHP and WP newbie, I am having difficulty figuring this out.

    Has anyone out there attempted this? Has anyone had any success?

    So far, I have been working with ‘wpmu_ldap_adduser_functions.php’, trying ‘explode’ the multiple user arrays entered into the Add User ‘username’ field (thereby creating an array of ‘user’ arrays), and then use a ‘foreach’ loop to iterate through each user array. I think this should work, and I have been trying looping different parts of the code, but have not yet had any success. A lot of blank-white pages.

  19. Afraid I haven’t yet met with success yet. I have been pulled into another project and haven’t spent much time lately on this, but I am still interested in trying to make this work.

  20. Do you know of a similar plugin that will work with the single install? We like yours the most, the others do have as many options, but we have decided to do single installs so we need to revisit the LDAP issue. Thanks for any suggestions!

  21. Firstly… THANK YOU. Without this plugin over 700 teachers in our school district would cry.

    Is this 2.6 version compatible with the new WPMU 2.7 ?

    I am thinking of upgrading soon and this is the most important plugin.

    Thanks,
    Chris Kenniburg

  22. The trunk contains some minor changes – overall things will still work. except for some minor things on the add user pages.

    As always, i would suggest testing on a dev install before moving your site to live! Especially since the 2.7 UI is totally different.

  23. Hey all,

    If you get a “headers already sent /wp-includes/pluggable.php on line 856.” I just initialized another output buffer in that file so:
    in pluggable.php:

  24. We are testing this plugin on wpMu 2.7.1 right now. Seems to be working fine. One thing we’re still working on is securing the login form, but that’s nothing directly to do with LDAP. The GUI for LDAP is nice to have, especially after trying to configure ldaps for apache.

  25. I receive the following errors when a new user attempts to login (WPMU 2.7):

    ======================

    Warning: Missing argument 3 for add_new_user_to_blog() in /var/www/users/wp-includes/wpmu-functions.php on line 2066

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/users/wp-includes/wpmu-functions.php:2066) in /var/www/users/wp-includes/pluggable.php on line 655

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/users/wp-includes/wpmu-functions.php:2066) in /var/www/users/wp-includes/pluggable.php on line 656

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/users/wp-includes/wpmu-functions.php:2066) in /var/www/users/wp-includes/pluggable.php on line 657

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/users/wp-includes/wpmu-functions.php:2066) in /var/www/users/wp-includes/pluggable.php on line 856

    =====================

    If I refresh the screen, it then takes them to their dashboard.

  26. I just installed WPMU 2.7 and when I go to activate the plugin I get the error below. Any suggestions?

    Fatal error: Cannot redeclare wp_new_user_notification() (previously declared in /Library/WebServer/digitalmediasite/blogs/wp-includes/pluggable.php:1106) in /Library/WebServer/digitalmediasite/blogs/wp-content/plugins/wpmu-ldap_2.6/ldap/lib/wpmu_ldap_admin.functions.php on line 414

  27. Is there a way to populate the email field on the successful user creation? I have tried it two ways using the update_usermeta and wp_update_user and pulling in the ldap index email for the ldapUserData. Any direction I need to go?

  28. This does work by default – are you using a non standard ldap setup? if thats the case, its not looking for the correct attribute. I plan to add the ability to change attributes to the plugin – just a reminder – the new plugin page is http://wpmuldap.frozenpc.net

  29. I’m finding it difficult (impossible) to create a new LDAP user as the site admin.
    Is anybody else having these problems (v2.7).
    Any hints, if not I’m going for a clean installation.
    Thanks for looking…..

    George.

Leave a Reply

Your email address will not be published. Required fields are marked *