Fellowship Hacks » Projects » Blog » Batch Users

Batch creation of blogs and users in WPMU

This task is part of the FellowshipHacks/Projects/Blog project.

Goal

To automate the data migration, all the existing Fellows user accounts and blogs must be created automatically on the WPMU platform.

People

People working on this task.

Volunteers are always welcome! Have a look at FellowshipHacks to know how you can help

Status

Last updated on: 090128

Done.

The WPMU+LDAP feature to automatically create users+blogs can be used in batch mode (using wget).

Since we don't know all plaintext passwords for users that must be created, we set up a temporary LDAP directory with all users sharing a known password, to be used at user-creation time only.

Subtasks

TODO

DONE

  • Tested successfully the batch user+blog creation feature of the LDAP plugin using wget (as we do for FellowshipHacks/Projects/Blog/BatchRSS) using a known LDAP password.

  • Tested the "fake LDAP directory" solution to the password problem

Notes

Available solutions

These are the only references I found on this topic (I've searched WP(MU) official sites and third party sites)

Two solutions are mentioned:

csv2blog script

This is a script to mass-create blogs on WPMU

TODO:

WP import users plugin

This is a WP plugin to create users for an existing blog; likely it won't work on WPMU.

Maybe it's easy to tweak it to create blogs on WPMU (optimistic :)

Possible custom solution

Some initial notes:

  • Write a mysql script to clone the WPMU tables initially created for new users/blogs
    • In this way we also have full control on default blog/user settings


CategoryFellowshipHacksTasks