Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when the service has a UPN user where the domain from UPN is not the correct to "domain\username" format #79

Open
asmialoski opened this issue Jul 22, 2021 · 0 comments

Comments

@asmialoski
Copy link

I have experienced an error in the following snippet of the code (around line 1022):
# Check for UPN style old name and convert to domain\username for SPN work items
If ($OldName.ToString() -match "@") { $OldName = ($OldName.Split("@")[1]).ToString() + "" + ($OldName.Split("@")[0]).ToString() Write-Host "tUsing $OldName in order to meet SPN requirements" -ForegroundColor "gray"
($ElapsedTime.Elapsed.ToString())+" [INFO] Using $OldName in order to meet SPN requirements" | Out-File $LogPath -Append
}

The error occurred because the old ADFS Service user was in the UPN format AND the domain part is not the same domain to use in the format 'domain\user'.

To solve, I need to change the user format in ADFS Service to 'domain\user' before to run the script again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant