WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 2.7+ and LDAP (16 posts)

  1. andremta
    Member
    Posted 5 years ago #

    I'm struggling to make WP2.7 working with LDAP but without success.

    The problem seems that most LDAP plugins are compatible with old WP login hashing (MD5) and aren't compatible with the new phpass login system implemented with 2.6+

    Anyone knows any HACK so I can make WP 2.7 working with LDAP authentication?

  2. sojweb
    Member
    Posted 5 years ago #

    What exactly are you trying to do, and where is it failing? I use LDAP authentication for my installation, but I also have a custom login page; so the way I did it bypasses the WP login system.

  3. andremta
    Member
    Posted 5 years ago #

    I have tried all LDAP plugins available at the plugin directory and all failed to work!

    Which plugin do you use for WP 2.7?

  4. sojweb
    Member
    Posted 5 years ago #

    Well, I wrote my own because those plugins didn't really fit my situation. How are they failing? And are you certain that you have LDAP support installed with PHP?

  5. andremta
    Member
    Posted 5 years ago #

    I have the "Invalid username" error. No matter what I insert, this errors pops up. But it works correctly with local WP accounts.

    I'm sure that the username exists in the LDAP. I have the php/LDAP mod installed.

    I'm using the Zimbra (OpenLDAP) as my LDAP server.

    Can you share with the WP community your LDAP plugin? It would be nice!

  6. sojweb
    Member
    Posted 5 years ago #

    Yeah, actually I submitted it earlier this afternoon, just haven't heard back yet :-). I'll post a link as soon as it's up.

  7. andremta
    Member
    Posted 5 years ago #

    Thanks mate :)

    Hope to ear from you soon!

  8. sojweb
    Member
    Posted 5 years ago #

    Okay, just added it via svn, so it should show up in the next few minutes: http://wordpress.org/extend/plugins/soj-casldap/

  9. sojweb
    Member
    Posted 5 years ago #

    I had to modify it a bit, and it's not as secure as it should be for a production site; so I wouldn't use it outright, but hopefully there is some code in there that can help.

  10. andremta
    Member
    Posted 5 years ago #

    Hello Sojweb!

    I installed the plugin but when I try to login the "wp-login.php" is not found! Maybe is there any error with the URI?

    I tried to DEFINE('CAS_URI', 'http://myurl.com'); but after this a blank page is showed.

  11. andremta
    Member
    Posted 5 years ago #

  12. andremta
    Member
    Posted 5 years ago #

    I have some sort of "Redirect Loop"

  13. sojweb
    Member
    Posted 5 years ago #

    If you're not using CAS, the plugin won't work. In the soj-ldap_config.inc.php file, though, there might be some LDAP functions that could help you.

    This is a pretty specific plugin, and I doubt many could use it as is... there might be some helpful code in there, though.

  14. andremta
    Member
    Posted 5 years ago #

    I only need it for LDAP, not for CAS.

    Is there any way to hack the code to make it work?

  15. sojweb
    Member
    Posted 5 years ago #

    Probably... I would like to help, but don't have the time for it. Sorry. Have you tried talking to the authors of the other LDAP plugins?

  16. andremta
    Member
    Posted 5 years ago #

    I have tried, so far, without success!

    Unfortunately I think there is no LDAP plugin that works perfectly for WP 2.7+

    Thanks anyway sojweb!

Topic Closed

This topic has been closed to new replies.

About this Topic