Azure-Samples / Azure-Samples/azure-files-samples

Bad NetBIOSName in Test-AzStorageAccountADObjectPasswordIsKerbKey

Open
#48 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.