The current VCL application creates local user accounts for each reservation. There is a need to provide active directory authentication so as to provide access to domain resources like profile and network shares during the VCL reservation.
This patch updates the VCL database by creating two additional tables:
activedirectorydomain -> used to store active directory related information
imageactivedirectorydomain -> used to store mapping of which images use which active directory domain.
A new column is added to the reservation table to hold current active directory information for that particular reservation.
The patch updates the VCL backed (vcld) to add functionality to make the windows images part of the active directory domain. It also sets the computer's hostname to be the same as defined in the database. This is done to prevent creation of a lot of temporary computer objects within Active Directory. The process of domain join add's two reboots (one for hostname update and one for domain join). After each reboot the cygwin_rebase scripts are run to reconfigure SSHD.
The patch also updates the VCL frontend to allow management of Active directory domains within the system and also manage the association of VCL images and active directory domains. There is an option to enable moving computer objects to specific Active directory Organization Unit's for better grouping and ability to apply custom policies to custom group of images on the Active directory side. This option was working in Cygwin 1.5 but stopped working in Cygwin 1.7 due to some path issues. I left this option in the front-end while I look for resolution within Cygwin 1.7.