Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000077Active Directory IntegrationBulk Importpublic2013-02-20 14:382013-02-20 14:53
Reportercst 
Assigned Tocst 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.1.4 
Target Version1.1.5Fixed in Version 
Summary0000077: Problems with Bulk Import of users with special characters in username
DescriptionReported by Andreas Barth:

I think I found a bug in bulkimport.php, which caused logins to fail when there are special character (ß) or Umlaute (ä, ö, ü) in the username, and automatic disablling of users is activated.

The code causing this is:
// import all relevant users
        $added_users = 0;
        $updated_users = 0;
        foreach ($all_users AS $username) {

/* HERE */ $ad_username = $username;

            // getting user data
            //$user = get_userdatabylogin($username); // deprecated
            $user = get_user_by('login', $username);

for me, changing it to this helped:

// import all relevant users
        $added_users = 0;
        $updated_users = 0;
        foreach ($all_users AS $username) {

            // getting user data
            //$user = get_userdatabylogin($username); // deprecated
            $user = get_user_by('login', $username);
/* HERE */ $ad_username = get_user_meta($user->ID, 'adi_samaccountname', true);

This is because WordPress logon names are created with s instead of ß, a instead of ä and so on.
can anyone confirm this problem / solution?

cheers,
Andreas
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000113)
cst (administrator)
2013-02-20 14:53

The fix above won't work. New users were not added correctly.

- Issue History
Date Modified Username Field Change
2013-02-20 14:38 cst New Issue
2013-02-20 14:38 cst Status new => assigned
2013-02-20 14:38 cst Assigned To => cst
2013-02-20 14:53 cst Note Added: 0000113


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker