mfkap
Forum Replies Created
-
Forum: Plugins
In reply to: [Active Directory Integration] User Meta being cleared on updateI received a response from the author of User Role Editor. After testing he found a bug in the code of URE, and he is planning on issuing a fix.
I can say that the support from URE is amazing. He has addressed two issues for me in less than 24 hours, including installing an entire test instance of ADI just to debug this problem.
Forum: Plugins
In reply to: [Active Directory Integration] User Meta being cleared on updateI have done more digging, and I am still unsure what is happening. On the table wp_usermeta, URE uses a meta_key of wp_ure_posts_list and wp_ure_categories_list, as well as a meta_key named wp_ure_posts_restriction_type. I have values set in all 3, and after I run the ADI bulk import, it deletes the records for wp_ure_posts_lists and wp_ure_categories_list, but it leaves wp_ure_posts_restriction_type set. Anyone have any suggestions? The section of code I think is relevant is:
// create new users or update them if (!$user OR (strtolower($user->user_login) != strtolower($username))) { // use strtolower!!! $user_id = $this->_create_user($ad_username, $userinfo, $display_name, $user_role, '', true); $added_users++; } else { $user_id = $this->_update_user($ad_username, $userinfo, $display_name, $user_role, '', true); $updated_users++; }