-
Notifications
You must be signed in to change notification settings - Fork 1
Wrong way to generate user name if AD id is empty #12
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
During the user import process it's possible that AD id is empty
We can have it in employee_id as activation method mode.
With enabled os2intra_generate_username checkbox (see settings form) the code generate new ad_id in line
| $mapped_row['ad_id'] = os2intra_user_import_generate_username($mapped_row); |
and pass it to user name afterwards
os2intra_user_import/includes/users.inc
Line 368 in 066cfe0
| $fields['name'] = $user['ad_id']; |
Users generated in this way also got wrong authorization credentials
os2intra_user_import/includes/users.inc
Line 427 in 066cfe0
| } elseif (!empty($user['ad_id'])) { |
Proposed solution
For employee_id as activation method mode:
Replace generation of new AD id to drupal user name
For ad_id as activation method mode:
Skip user from import scope with proper log message
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working