TheJumpCloud / jumpcloud-ADMU

JumpCloud Active Directory Migration Utility - JCADMU
23 stars 7 forks source link

hostname and JCUsername validation check #115

Closed kmaranionjc closed 7 months ago

kmaranionjc commented 7 months ago

Issues

What does this solve?

Windows does not allow the same hostname and username. This change adds a validation to given JCUsername and local hostname.

Is there anything particularly tricky?

n/a

How should this be tested?

To get the device hostname, on powershell run this command: hostname

  1. Run Start-Migration -JumpCloudUsername "YOURDeviceHostname" -SelectedUsername "AzureAD/testUser"

  2. Validate that this throws an error image

  3. Open form (./start-jcadmu)

  4. On the Local Account Username text box enter the device hostname

  5. Validate that the migrate profile button is disabled image