Below is what an admin would do manually. You will need to adjust the variables to work for you, obviously. These steps are similar in debian based Linux distributions, but with a twist. I didn't document that here, as I didn't see the need. They are relatively minor changes.
- Export some variables that we'll need.
### Set your domain
export adauth_domain=YOURDOMAIN.LAB