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.
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?
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?
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!
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.
Thanks mate 🙂
Hope to ear from you soon!
Okay, just added it via svn, so it should show up in the next few minutes: http://ww.wp.xz.cn/extend/plugins/soj-casldap/
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.
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.
I have some sort of “Redirect Loop”
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.
I only need it for LDAP, not for CAS.
Is there any way to hack the code to make it work?
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?
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!