Currently Being ModeratedJan 27, 2013 5:48 PM (in response to Archizzus)
You can export users fron local to opendirectory (LDAP) with Work Group Manager.
You'll want to be careful depending on what services you run on the server...
For example, if you delete a user from local and your server hosts mail, you will lose their mail.
If service data isn't an issue, then its straightforward to export from local, import to OD.
You'll need to reset the user's PW, its note retained with an export/import.
Currently Being ModeratedJan 28, 2013 1:18 PM (in response to UptimeJeff)
Thanks a lot for trying to help me. If I understand you, I should do the following steps :
1) Import users from iMac to Mac Mini server with the migration assistant. Imported users will be local users on the servers
2) Export these new local users with Workgroup manager
3) Import the exported users in the directory with Workgroup manager
Am I right ?
Currently Being ModeratedJan 28, 2013 1:58 PM (in response to Archizzus)
I don't know that I would use WGM to export. Not that I don't trust it.... Wait... Actually, no. I don't trust it!
There's a number of steps that you can take to complete this process. There's a couple command line ... ...commands... but I'll do my best to walk you through it.
If I miss some steps, hopefully someone will interject!
Assuming that your network based users are going to have their home folders in the same location as the local ones, you need to share that location.
-Click File Sharing in the Server.app
-Click the Plus button at the bottom of the Filesharing window.
-Select the "Users" folder in the SECOND column (just to the right of "Macintosh HD")
-Double click the Users folder that appears.
-Scroll down and check the item: "Make available for Home Directories over AFP" (afp is in the pulldown menu)
Open System Preferences ---> Accounts, delete the users that you want to be network based. When it asks you what you want to do with the home folder, select "Don't change the home folder." You do not want to move that home folder, make it a disk image, or delete it. We need to use it for the new user we're going to create in WGM.
In WGM, create a new user in the LDAP Node.
Name that user with the identical name that the user had when he/she was a local user. Ensure that the user's "shortname" is the same name as their home folder. This will be important when we claim ownership for the new user. Don't forget to set a password!
Click on the Home tabm in WGM.
Select the one that says, "afp://server.example.com/Users"
Open up terminal and type the following.
sudo chown -R *username* /Users/*username*
****Note that it goes without saying that *username* is both the shortname and the name of the homefolder we're assigning.
Hopefully this helps!
Currently Being ModeratedJan 28, 2013 2:22 PM (in response to gracoat)
WGM has been dependable for me.. I move users with export/import quite often.
Currently Being ModeratedJan 28, 2013 2:28 PM (in response to Archizzus)
We are just talking about moving the users from server to server, right?
If its a family server, I imagine its < 10 users, why don't you just type them into the new server as local network users after enabling open directory...
You can use WGM from the old server, export the users.
- use WGM on old server to export users/groups
- promote new server to OD
- Launch WGM (relaunch if it was running when you pomoted)
- Above the user list, you can switch between local and LDAP(OD) users, switch to LDAP
- Import Users/Groups
This process isn't going to move service data and it won't retain passwords... It will save you retyping users and ensure you have the same Full Name, Shortname(s) and GUID. Thats about it.
Currently Being ModeratedJan 29, 2013 1:42 PM (in response to UptimeJeff)
No it is not from server to server but from desktop Mountain Lion (iMac where the local users are) to server (Mac mini where I want to store their data/home folders)
Currently Being ModeratedJan 29, 2013 2:49 PM (in response to Archizzus)
Yikes. You'll have to move the user data to the server in this case. THEN you'll have to import the users using one of the methods above.
If you have an external drive you can connect your iMac to, then copy the data there. Note that Dragging the Users folder won't work.
You'll have to use terminal.
Note that we're going to use the sudo command. BE CAREFUL to type the commands exactly (with the exception of .
Sudo can do nasty things to your compy if you're not careful.
sudo rsync -aov /Users /Volumes/*externalDriveName*/
Depending on how much data your Users folder has in it, this could take quite a bit of time, but it will transfer nicely.
Next, connect the External drive to your Mini.
Open terminal there.
sudo rsync -aov /Volumes/*externalDriveName*/Users/* /Users/
ENSURE THAT YOU TYPE THE TRAILING SLASHES EXACTLY.
If you don't have a slash at the end of the last one, you might really badly break your Users folder.
Once that finishes, the data will be on your server in your Users folder.
As I stated above, you'll need to share this folder and ensure Make available for Home Directories over AFP is checked in the sharing options.
Currently Being ModeratedJan 29, 2013 2:51 PM (in response to Archizzus)
I've never tried it with ML.. But it is possible to use WGM to export users from a client computer. It reads the local directory same as-if it were a server. You could probably do it.
But again- how many users are we talking about? Has to be a alot to be worthwhile.
And- we are only talking about moving their user name, shortname (account details) without password.
No service data (home folder) is moved by this process.
Currently Being ModeratedJan 7, 2014 9:52 PM (in response to gracoat)
thx dudes for your tutorial
Currently Being ModeratedJan 8, 2014 8:36 AM (in response to iwanlucky)
Here's the general Apple migration sequence: How to convert a local user account to a network user account (HT5338)
More Like This
- Retrieving data ...
- This solved my question - 10 points
- This helped me - 5 points