sudo unbindOD.sh <mountPoint> <computerName> <currentUsername> <serverAddress> <username> <password>
If the $serverAddress, $username, and $password parameters are specified (parameters 4, 5, and 6), these will be used to unbind the machine from Open Directory. The username/password that should be used in this script should be an Open Directory user that has permissions to remove/unbind a machinefrom Open Directory.
If no parameters are specified for parameters 4, 5, and 6, the hardcoded value in the script will be used.
This script will unbind a client machine from an Open Directory domain. The <serverAddress>, <username>, and <password> values can be used with a hardcoded value in the script, or read in as a parameter. Since the Casper Suite defines the first three parameters as (1) Mount Point, (2) Computer Name and (3) username, we are using the fourth, fifth, and sixth parameters ($4, $5, $6) as the passable parameters.