GitHub repository: tehama-io/realmd-adcli
Description: Library of routines for joining a machine to Active Directory (without samba) and managing machine accounts there. Will probably expand to cover other AD related tasks as well.