Plugin Conflict with wpDirAuth
-
Hi, I’ve been adding Multiple Roles to our sites on multisite installations. I’m using version 1.0 on WordPress 4.2.2.
I ran into an unexpected issue this week. We use LDAP authentication via the wpDirAuth plugin, and when we add directory-authenticated users through their interface, it indicates that the user is successfully added, but the new user doesn’t appear in the Users list.
In tracing back what’s being added to the wp_users and wp_usermeta tables, I found that no role is being assigned to the new user — only an empty array.
Experimenting with it further, I found that by commenting out this line in multiple-roles.php:
add_action(‘user_register’, array( $checklist, ‘process_checklist’));
that adding the directory-authenticated user now works.
My best guess is that the logic in the function process_checklist($user_id) was intended to return in a context where $_POST[‘md_multiple_roles_nonce’] is unset. Instead, it seems to be setting $new_roles to an empty array and applying that to the newly-created user.
Can you check this out and see if it’s possible to adjust the logic so it will work in such cases? Anything you can do would be appreciated.
- The topic ‘Plugin Conflict with wpDirAuth’ is closed to new replies.