mendocinoWebmaster
Forum Replies Created
-
Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateYeah, looking at the code it seems the aims of the two functions are pretty similar, though
wp_insert_useris more robust. Seems like a friendliness/efficiency trade-off. Both functions try to serve both purposes, but insert does it better.I noticed the update wasn’t available. My hacks are working though, so I’ve got patience to spare.
Thanks.
-daveForum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateWe’re on the latest, WP 3.1
The initial failures stemmed from the fact that there is no user ID value. The
wp_update_userfunction also relies on this null user ID.Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateThis is happening with all attempts to manually add. Tweaking the return data on the error gave me the full, appropriate email address.
People who log in with their LDAP credentials have an account created correctly.
After digging through the WP code I decided to change the
$intUserID = wp_update_user($aryUserDetails);line to$intUserID = wp_insert_user($aryUserDetails);and it seems to be working. What do you think?Thanks for all the help, Paul!
Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateNo go. Same error.
I’ve now tried with anonymous and admin binding.
Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateDirectory Authentication Error:
* For an unknow reason, WP failed to create a new user. Failure occurred at line 1536 in the function wpDirAuth_add_new_user in the file wpDirAuth.php.So, the user ID returned isn’t an integer. If I play with the return from
if(!is_int($intUserID)){(line 1534) I get:Directory Authentication Error:
* Cannot create a user with an empty login name.I don’t work in PHP a whole lot and this was just a cursory glance, but maybe it’ll help.
Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 Update@gilzow Thanks for the information. I thought I pulled a rookie move for a minute.
I dig the idea of the new feature, but I’m also getting connection errors when trying to add users.
As an aside, we’re not on AD. Is AD where you’re going with this plugin? I’ll roll back and stop updating if that’s the case.
LDAP is a pain and I applaud your efforts!
Forum: Plugins
In reply to: [wpDirAuth] wpDirAuth 1.6 UpdateThanks. I must have been looking at cache.