Bug Fix: Reimage Job Enrol wouldn't join AD domain

This commit is contained in:
Gary Sharp
2014-07-31 11:53:42 +10:00
parent 1d931463a8
commit 12fc071786
-8
View File
@@ -466,8 +466,6 @@ namespace Disco.BI.DeviceBI
}
if (adMachineAccount == null)
{
if (isAuthenticated || RepoDevice.AllowUnauthenticatedEnrol)
{
if (RepoDevice.DeviceProfile.ProvisionADAccount)
{
@@ -512,12 +510,6 @@ namespace Disco.BI.DeviceBI
}
}
else
{
response.DeviceComputerName = Request.DeviceComputerName;
response.DeviceDomainName = Request.DeviceDNSDomainName;
}
}
else
{
RepoDevice.DeviceDomainId = adMachineAccount.Id.Trim('$');
response.DeviceComputerName = adMachineAccount.Name;