Bug Fix: Reimage Job Enrol wouldn't join AD domain
This commit is contained in:
@@ -466,8 +466,6 @@ namespace Disco.BI.DeviceBI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (adMachineAccount == null)
|
if (adMachineAccount == null)
|
||||||
{
|
|
||||||
if (isAuthenticated || RepoDevice.AllowUnauthenticatedEnrol)
|
|
||||||
{
|
{
|
||||||
if (RepoDevice.DeviceProfile.ProvisionADAccount)
|
if (RepoDevice.DeviceProfile.ProvisionADAccount)
|
||||||
{
|
{
|
||||||
@@ -512,12 +510,6 @@ namespace Disco.BI.DeviceBI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
response.DeviceComputerName = Request.DeviceComputerName;
|
|
||||||
response.DeviceDomainName = Request.DeviceDNSDomainName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
RepoDevice.DeviceDomainId = adMachineAccount.Id.Trim('$');
|
RepoDevice.DeviceDomainId = adMachineAccount.Id.Trim('$');
|
||||||
response.DeviceComputerName = adMachineAccount.Name;
|
response.DeviceComputerName = adMachineAccount.Name;
|
||||||
|
|||||||
Reference in New Issue
Block a user