azure-files-samples icon indicating copy to clipboard operation
azure-files-samples copied to clipboard

Bad NetBIOSName in Test-AzStorageAccountADObjectPasswordIsKerbKey

Open mgajda83 opened this issue 4 years ago • 4 comments

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

mgajda83 avatar Sep 22 '20 09:09 mgajda83

I can confirm we have Microsoft customers that were facing this issue and once the script was modified to reflect $userName = $domain.NetBIOSName + "" + $adObj.Name instead of $userName = $domain.Name + "" + $adObj.Name, the issues got resolved. Can we push this Issue for review so the script can be amended accordingly?

ancmarti avatar Sep 28 '20 11:09 ancmarti

Sure

mgajda83 avatar Sep 28 '20 11:09 mgajda83

Any updates on this?

irina-georgiana avatar Oct 13 '20 06:10 irina-georgiana

@mgajda83 Hi :) any update on this issue? Can you please let me know if the script has been fixed?

Thank you!

irina-georgiana avatar Oct 27 '20 09:10 irina-georgiana