Azure-Samples / Azure-Samples/azure-files-samples
Bad NetBIOSName in Test-AzStorageAccountADObjectPasswordIsKerbKey
- Dominant language
- PowerShell
- Stars
- 261
- Forks
- 202
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 4
Description
Hi,
In function Test-AzStorageAccountADObjectPasswordIsKerbKey was used wrong name for netbios. This generating error with Debug-AzStorageAccountAuth, when you have different netbios name:
"---- CheckADObjectPasswordIsCorrect ----
Password for < Bad name > \\ < StorageAccountName > does not match kerb1 or kerb2 of storage account: < StorageAccountName >. Please run the following
command to resync the AD password with the kerb key of the storage account and retry: Update-AzStorageAccountADObjectPas
sword. (https://docs.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-update-password)"
It is:
$userName = $domain.Name + "\" + $adObj.Name
But should be:
$userName = $domain.NetBIOSName + "\" + $adObj.Name
Contributor guide
Assessment
This issue has not been assessed yet.