I’m vacation right now but can help you further on Monday. A couple of things to check, are you using ldaps or TLS in the wpdirauth settings? If so, then it’s probably something with your ssl libraries. Also, try turning on WP_DEBUG and see what’s being recorded in the log file. If neither of those shed any light on the problem, I have a separate test file I can send which should help further isolate the problem.
back from vacation. definitely sounds like you’re hitting an unrecoverable error. Did you try enabling WP_DEBUG and WP_DEBUG_LOG in your wp-config file? If so, what errors were recorded?
Alternatively, Here’s a script you can use to test that is independent of any wordpress interference: http://pastebin.com/Ri07VXkN
You’ll need to change lines 4-8 with the specifics for your organization. This will run through and do basically the same thing as wpDirAuth but without all of the wordpress stuff.
You might need to change lines 79-86 if your organization’s user names and passwords have different requirements.
Line 172 contains intentional bogus credentials to show what happens when the prebind credentials (lines 4 and 5) succeed but the person attempting to authenticate fails (or no one by that ssoid/samaccountname) exists.
Thank you. I will try what you’ve suggested and report back.
Once I enabled wp_debug and tried again:
When I have Require SSL Login? set to No and Enable SSL Connectivity? set to No SSL Connectivity, I get the following error (I substituted the word username where the real username was):
—–
Fatal error: Uncaught Error: Call to undefined function split() in C:\inetpub\wwwroot\wplive\wp-content\plugins\wpdirauth\wpDirAuth.php:1619 Stack trace: #0 C:\inetpub\wwwroot\wplive\wp-content\plugins\wpdirauth\wpDirAuth.php(1837): wpDirAuth_add_new_user(‘username’, ‘administrator’, 0) #1 C:\inetpub\wwwroot\wplive\wp-includes\plugin.php(525): wpDirAuth_add_user_panel(”) #2 C:\inetpub\wwwroot\wplive\wp-admin\admin.php(236): do_action(‘users_page_wpDi…’) #3 C:\inetpub\wwwroot\wplive\wp-admin\users.php(11): require_once(‘C:\\inetpub\\wwwr…’) #4 {main} thrown in C:\inetpub\wwwroot\wplive\wp-content\plugins\wpdirauth\wpDirAuth.php on line 1619
—–
I will work on getting the script you linked to working and see what I can find out from that.
Thank you for your help.
well, crud. I thought I had replaced both instances where I was using split() but I now see that I missed one. Fixing that and pushing a new version momentarily.
v1.7.12 is available now. Update the plugin and see if that fixes it.
I am still getting the same error. I also tried the script you provided but that is trying to start TLS, which apparently is not working on my server. Sorry to be such a pain, and thank you for being so responsive.
You’re still getting the error
Fatal error: Uncaught Error: Call to undefined function split()
after updating to v1.7.12?
If so, then your version of the plugin didnt update, as split() has been completely removed from the code. Or are you getting a different error message now in the debug.log file?
No, I am getting the identical error that you cited. I will remove the plugin and reinstall the latest version.
hold on, something happened with SVN. give me just a second before you update.
I deleted the plugin and reinstalled it from scratch. And hooray! I was able to add a user! Now I will see if I can get it working with SSL. Thank you SO MUCH for all your help!
Not a problem. Sorry for the problem with the update not sticking.
Now I will see if I can get it working with SSL.
If you are referring to Enable SSL Connectivity? I’ll give you a head’s up that it can be challenging to get set up and troubleshoot. It’s all in how your server is set up. I can try and help give you some pointers and things to look for, but there won’t be a whole lot I can help with.
If you’re talking about Require SSL Login? that should be a piece of cake as long as you have ssl set up for the website already.
Once you get everything working and are happy with the plugin, I’d really appreciate it if you could rate it for me. š
Sorry, I started the below message and then was called away before I sent it!
I am referring to Enable SSL Connectivity.
I do have it working with Require SSL Login.
I will definitely rate your plugin – especially if I can get that SSL Connectivity working!
ok, definitely take advantage of the simplified code that I linked above (the pastebin link) to help you troubleshoot getting the ssl to work before you add in the wordpress overhead. The most common problems I’ve seen are either cert name mismatches and the TLS_REQCERT directive in ldap.conf (particularly where your server domain name is a round robin), *.pem file locations, and the ldap.conf file location on windows.
I updated the ldap test script. Here’s the newest copy: http://pastebin.com/Ri07VXkN
Make sure to change lines 5 – 29 as applicable.