Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

str8outtajc/mobile2local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

End of life announcement

This repo is now archived.
A FAR SUPERIOR TOOL IS AVAILBABLE HERE

mobile2local

Convert Active Directory Mobile Account to Local Account via Self Service

Credits

This is BETA !

  • Deploy as a production tool at your own risk
  • It needs more testing and more feedback
  • It works great in "my" organization's environment, but needs a lot more testing

Overview

Functionally, this script pretty much does exactly what Rich's does.

Key differences:

  • Intended for use with JAMF's Self Service
  • GUI dialogs for user
  • Suggests a new account name for user
  • Allows user to change to something custom if he or she wishes to
  • Lots of error contol
    • User can't pick an existing account name
    • User can't create account name with illegal characters
    • User can't create an account if home directory for that account is already in /Users

Known Issues and Limitations

  • Unable to handle conversions if current user's home folder is not on same disk as the new home folder location. See below

Revision History

Version 1.21 Beta
  • Added a check for user home directory location - it's ugly
  • Determining home folder disk with variables
currentUserHome=`/usr/bin/dscl . -read /Users/$currentUser NFSHomeDirectory | sed -n 's|.* \(/.*\)|\1|p'`
currentUserDirDisk=`df "$currentUserHome" | awk '{print $1}' | tail -1`
  • Then compare to disk for "/Users"
  • If they don't match - error message - can't continue
  • The idea behind all this is that new local accounts will have home directories in standard /Users. If previous home directory was on a different disk than /Users - the rename of the home directory could potentially croak. (not enough disk space, etc.)
Version 1.22 Beta
  • Fixed bug - customizeLongName function was running a second time when not necessary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages