Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    Yeah, looking at the code it seems the aims of the two functions are pretty similar, though wp_insert_user is 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.
    -dave

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    We’re on the latest, WP 3.1

    The initial failures stemmed from the fact that there is no user ID value. The wp_update_user function also relies on this null user ID.

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    This 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!

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    No go. Same error.

    I’ve now tried with anonymous and admin binding.

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    Directory 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.

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    @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!

    Thread Starter mendocinoWebmaster

    (@mendocinowebmaster)

    Thanks. I must have been looking at cache.

Viewing 7 replies - 1 through 7 (of 7 total)