Renaming users -- what all is there?
For an ultimately good goal, but much short-term pain, I am going to be attempting to rename some 20,000 users on our system. I have a working script to rename the mail user (create new, copy mail using MoveUser, delete old), but still haven't worked out all the other details. I am assuming I can extract all the PiServerDB ldap entries, make suitable modifications and re-add them, but is there a better way? The same holds true for the calendars -- I can extract each individual calendar(csexport), modify it (being careful to also modify access control entries), and import it, but I'd rather not have to re-invent the wheel.
So... Has anyone written a reliable "rename everything" script? Is there a tool I'm missing? Am I forgetting something *else* I need to change?
Dale
# 1
You talk about "renaming users". If you're talking about the user's actual name, you don't have to mess with nearly as much. If you're talking about the UID (User ID), then you're right, it's a royal pain, and you're going down the right road. Alas, there's no good story for changing a UID. That's one reason to use something different from a user's actual name for UID. . .
jay
# 2
I should have been more specific, Yes, I am talking about the UID.I had mostly decided it was going to be painful, but I was hoping someone else had already done the work. :)When (if?) I work out a solution, I'll post it for comment.
# 3
If you include Calendar, there actually is no good answer. We've been trying to figure something out ourselves, and it gets VERY complex.Far better to keep UID the same, and simply change the user's name. . .